Randomblue
Randomblue

Reputation: 116343

In what file is a my struct defined in?

I am working with a standard library with many files. I would like to know where an often-used typedef struct is defined. I have its name, but that's it.

Is there a way to "programmatically" tell where a given struct is defined among a lot of files?

Upvotes: 0

Views: 63

Answers (1)

Andrew White
Andrew White

Reputation: 53516

You didn't list an OS or an IDE but in Linux I have always used grep. I have yet to find an IDE that is good at tracking down typedefs especially since some are wrapped in macros.

Upvotes: 1

Related Questions