hostname_test.c

Go to the documentation of this file.
00001 
00007 /* $Id: hostname_test.c,v 1.2 2005/11/10 20:46:09 seymour Exp $ */
00008 /* $UTK_Copyright: $ */
00009 
00010 #include <stdlib.h>
00011 #include <stdio.h>
00012 #include <string.h>
00013 
00014 #include "utility.h"
00015 
00025 int main(int argc, char** argv)
00026 {
00027   char *name;
00028 
00029   name = gs_get_machine_name();
00030 
00031   printf("my FQDN is '%s'\n", name ? name : "could not be determined");
00032 
00033   exit(EXIT_SUCCESS);
00034 }