supergiox supergiox - 1 year ago 108
C Question

Find needed header file

I'm programming in

a device (
) whose documentation explains each function or data structure of the SDK, but doesn't tell where to locate the corresponding header file, so every time I need to search them using
and annoying regex.

Which is in these cases the best/common practice to "browse" the SDK and find headers?
I usually use
Sublime Text
as editor (on GNU/Linux and Mac OS X) but any other solution are appreciated.

Answer Source

I would normally just use find + grep for this, e.g. to find the definition of foo:

$ find /path/to/SDK -name \*.h -exec grep foo {} /dev/null \;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download