]> andersk Git - splint.git/blame - test/manual/mstringnn.c
Fixes for win32
[splint.git] / test / manual / mstringnn.c
CommitLineData
77970e15 1typedef /*@abstract@*/ /*@null@*/ char *mstring;
2
3static mstring mstring_createNew (int x) ;
4
5mstring mstring_space1 (void)
6{
7 mstring m = mstring_createNew (1);
8
9 /* error, since m could be NULL */
10 *m = ' '; *(m + 1) = '\0';
11 return m;
12}
13
14static /*@notnull@*/ mstring mstring_createNewNN (int x) ;
15
16mstring mstring_space2 (void)
17{
18 mstring m = mstring_createNewNN (1);
19
20 /* no error, because of notnull annotation */
21 *m = ' '; *(m + 1) = '\0';
22 return m;
23}
This page took 0.069439 seconds and 5 git commands to generate.