[BACK]Return to test-fgetln.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/test-fgetln.c between version 1.1 and 1.2

version 1.1, 2011/12/13 11:26:12 version 1.2, 2014/01/04 01:11:00
Line 1 
Line 1 
   #include <sys/types.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <unistd.h>
   
 int  int
 main(void)  main(void)
 {  {
         char *cp;  
         size_t sz;          size_t sz;
         cp = fgetln(stdin, &sz);          fclose(stdin);
         return 0;          return(NULL != fgetln(stdin, &sz));
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb