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: troll 2010-10-24 16:03

There is nothing in manpage of make. It is not so stupd thing as it seems to be....

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