Aggiornamento note copyright
[gapil.git] / sources / TCP_daytime.c
index 4ed7e4f027cd14b6b7714ec0a5fe8cd2da4701f2..ddb8e129b40d485b7a305ab50bc8842df9f29868 100644 (file)
  *
  * Usage: daytime -h give all info's
  *
- * $Id: TCP_daytime.c,v 1.2 2003/04/29 15:33:39 piccardi Exp $ 
- *
  ****************************************************************/
 /* 
  * Include needed headers
  */
-#include <sys/types.h>   /* predefined types */
-#include <unistd.h>      /* include unix standard library */
-#include <arpa/inet.h>   /* IP addresses conversion utiliites */
-#include <sys/socket.h>  /* socket library */
-#include <stdio.h>      /* include standard I/O library */
+#include <stdlib.h>     /* standard library */
+//#include <sys/types.h>   /* primitive system data types */
+#include <unistd.h>      /* unix standard library */
+#include <arpa/inet.h>   /* IP addresses conversion utilities */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <string.h>     /* C strings library */
 
 #define MAXLINE 80
 /* Program begin */
@@ -121,7 +121,7 @@ void usage(void) {
     printf("Take daytime from a remote host \n");
     printf("Usage:\n");
     printf("  daytime [-h] [-v] [host in dotted decimal form] \n");
-    printf("  -v          set verbosity on\n");
+//    printf("  -v        set verbosity on\n");
     printf("  -h          print this help\n");
     exit(1);
 }