> I saw getopt.h, getopt.c, and getopt1.c in my gcc directory under > libiberty. What are these for?
Those are for building gcc itself. They're not normally used by applications, unless you want to import all of libiberty into your application. Normally, glibc provides the getopt family of functions.