]>
Commit | Line | Data |
---|---|---|
03d670b6 | 1 | |
088320ea | 2 | |
3 | void func () { | |
4 | char *c; | |
5 | c = strchr("dfdfedfd", 'e'); | |
0bf5022d | 6 | *c = 'd'; /* modification of observer, possibly null */ |
088320ea | 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 | } |