Re: getenv() fails II

2004-07-13 Thread Giorgos Keramidas
On 2004-07-13 22:25, Miguel Cardenas <[EMAIL PROTECTED]> wrote: > Efectively was that way... in Linux it used to work fine... then my > next question should be... is there any other way to retrieve the > hostname? and... as a normal user? Yep. See the manpage of gethostname(). This should work

getenv() fails II

2004-07-13 Thread Miguel Cardenas
Hello > 4int > 5main(void) > 6{ > 7char *s; > 8 > 9s = getenv("HOSTNAME"); > 10if (s == NULL) { > 11fprintf(stderr, "getenv error\n"); > 12