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

Diff for /mandoc/test-strcasestr.c between version 1.1 and 1.3

version 1.1, 2013/12/31 23:03:47 version 1.3, 2015/10/06 18:32:20
Line 1 
Line 1 
   #if defined(__linux__) || defined(__MINT__)
   # define _GNU_SOURCE /* strcasestr() */
   #endif
   
 #include <string.h>  #include <string.h>
   
 int  int
Line 5  main(void)
Line 9  main(void)
 {  {
         const char *big = "BigString";          const char *big = "BigString";
         char *cp = strcasestr(big, "Gst");          char *cp = strcasestr(big, "Gst");
         return(big + 2 != cp);          return cp != big + 2;
 }  }

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

CVSweb