]> andersk Git - splint.git/blame - test/manual/list.c
Fixed problem with handleing oldsytle function declarations.
[splint.git] / test / manual / list.c
CommitLineData
77970e15 1typedef /*@null@*/ struct _list
2{
3 /*@only@*/ char *this;
4 /*@null@*/ /*@only@*/ struct _list *next;
5} *list;
6
7extern /*@out@*/ /*@only@*/ void *
8 smalloc (size_t);
9
10void
11list_addh (list l, /*@only@*/ char *e)
12{
13 if (l != NULL)
14 {
15 while (l->next != NULL)
16 {
17 l = l->next;
18 }
19
20 l->next = (list) smalloc (sizeof (*l->next));
21 l->next->this = e;
22 }
23}
24
25
26
This page took 0.05885 seconds and 5 git commands to generate.