Functions

hostname_test.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "utility.h"
Include dependency graph for hostname_test.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Detailed Description

Simple test of the gs_get_machine_name() function.

Definition in file hostname_test.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Entry point for tester.

Parameters:
argc -- arg count
argv -- array of command line args
Returns:
EXIT_SUCCESS on success, EXIT_FAILURE on error.

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);
}

Here is the call graph for this function: