How to find the directory of a binary (in C)
I've been working on this game, and I need to know exactly what directory the binary is in so I know where to find the graphics directory (which is relative to the binary). I figure there must be a function or something to do this, it's such a common thing. I can't just use argv (which was suggested to me elsewhere) because if the user makes a SymLink argv will give me the name and path of the SymLink, not the actual binary. Just let me know if I'm not making sense and I'll try to be more clear.