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