]> andersk Git - splint.git/blame - test/strchr/strchr.c
*** empty log message ***
[splint.git] / test / strchr / strchr.c
CommitLineData
03d670b6 1
088320ea 2
3void func () {
4 char *c;
5 c = strchr("dfdfedfd", 'e');
0bf5022d 6 *c = 'd'; /* modification of observer, possibly null */
088320ea 7}
8
9void 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.89475 seconds and 5 git commands to generate.