#include <stdlib.h>#include <stdio.h>#include <string.h>#include "utility.h"
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Simple test of the gs_get_machine_name() function.
Definition in file hostname_test.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Entry point for tester.
| argc | -- arg count | |
| argv | -- array of command line args |
Definition at line 25 of file hostname_test.c.
{
char *name;
name = gs_get_machine_name();
printf("my FQDN is '%s'\n", name ? name : "could not be determined");
exit(EXIT_SUCCESS);
}

1.6.3-20100507