#include main() {char *Name=(char *)malloc(50); gethostname(Name,50); fprintf(stderr,"Host is %s\n",Name); }