]> andersk Git - splint.git/blob - test/strchr/strchr.c
3529d0f6f6ccea855610ce8949d9823bf2f74513
[splint.git] / test / strchr / strchr.c
1
2
3 void func () {
4   char *c;
5   c = strchr("dfdfedfd", 'e');
6   *c = 'd'; /* modification of observer, possibly null */
7 }
8
9 void fixline (char * line)
10 {
11   char *p;
12  
13   if ( (p = strchr(line, '\n')) ) 
14   {
15     *p = '\0';
16   }
17   
18 }
This page took 0.025103 seconds and 3 git commands to generate.