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