Logo Search packages:      
Sourcecode: ld.so version File versions

foo.c

#include <stdio.h>

main () {
char hn[10];

      gethostname(hn,10);
      printf("got hostid=%ld, hostname=%s\n",gethostid(), hn);

}

Generated by  Doxygen 1.6.0   Back to index