Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Store machine hostname at compile time

Name: troll 2010-10-24 15:26

Hi g33kz!
I saw some apps, which storred machine hostname at build time. I am coding one project in C, and I want to store machine hostname, where the binary was compiled. I cannot find it. How can I do it? Is there some preprocessor macro or what? I am using gcc.
Thanks

Name: Anonymous 2010-10-24 15:43

What an utterly stupid thing to do.
But if you insist, man make.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List