Bit embarrassed about this trivial question, but actually I think it's _deceptively_ trivial and it's about how to conduct google searches for specifically c code.
I do this when starting to code an algorithm and want to see if any work has been done on it. so I type "c code catalan numbers" for example, into "the" google when looking for code on generating catalan numbers (which is an example).
Of course the chief problem is that "c" could be an initial, or a bunch of other things, so the results can be multifarious and often there's no c at all.
Programmers in Haskell probably don't have this problem, but equally, there has got to be considerably more c code out there than Haskell.
Of course, there are a few site one can visit, which usually have some c code, but I was looking for wider, more effective ways of searching for c.
There are other options for searching for language-agnostic code: so google code, pastebins, github and the like, have a bunch of code, but in these cases, you end up with a bunch of c++, python, Haskell, etc. which in my example, probably have a blackbox function called generate_catalan_numbers() already implemented (i'm being facetious).
And there is the option of going to open-sourced specialist libraries, many of whihc are in c, and digging out the code. This is actually the option that I usually take. However, this post was about using general internet searches to uncover specific c snippets rather than this targetted approach.
Anybody any advice on this? I mean, above and beyond "don't do it" (which is true because often, I throw it away after goign through it and start from scratch, but at least I can say I'm not reinventing the wheel).