skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

trymemmem.c (420B)


      1 /* ISC license. */
      2 
      3 #undef _POSIX_C_SOURCE
      4 #undef _XOPEN_SOURCE
      5 
      6 #ifndef __EXTENSIONS__
      7 #define __EXTENSIONS__
      8 #endif
      9 #ifndef _GNU_SOURCE
     10 #define _GNU_SOURCE
     11 #endif
     12 #ifndef _BSD_SOURCE
     13 #define _BSD_SOURCE
     14 #endif
     15 #ifndef _NETBSD_SOURCE
     16 #define _NETBSD_SOURCE
     17 #endif
     18 #ifndef _INCOMPLETE_XOPEN_C063
     19 #define _INCOMPLETE_XOPEN_C063
     20 #endif
     21 
     22 #include <string.h>
     23 
     24 int main (void)
     25 {
     26   memmem("blah", 4, "la", 2) ;
     27   return 0 ;
     28 }