File: hosttest.cc

package info (click to toggle)
wvstreams 4.0.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,420 kB
  • ctags: 6,518
  • sloc: cpp: 52,544; sh: 5,770; ansic: 810; makefile: 461; tcl: 114; perl: 18
file content (16 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2003 Net Integration Technologies, Inc.
 * 
 * Test for the 
 *
 */
#include "strutils.h"
#include <stdio.h>

int main()
{
    printf("Hostname: %s\n", hostname().cstr());
    printf("Fully Qualified Host Name: %s\n", fqdomainname().cstr());
    return 0;
}