compiler/clib: Remove usage of acb_environptr field outside __arosc_environ.c
[AROS.git] / test / clib / strchr.c
blobab5ab36a819cf8bf8f05ce3bfa21ffe3d9da60b0
1 #include <stdio.h>
2 #include <string.h>
3 #include "test.h"
5 int main()
7 char *string = "test";
8 char *p;
10 TEST( strchr( string, '\0' ) != NULL );
12 p = strchr( string, 't' );
13 TEST( *p == 't' && p == &string[0] );
15 p = strchr( ++p, 't' );
16 TEST( *p == 't' && p == &string[3] );
18 TEST( strchr( ++p, 't' ) == NULL );
20 return OK;
23 void cleanup()
25 /* Nothing to clean up */