Don't try calling lsl when file is missing.
[splint-patched.git] / test / manual / list.c
blob3e62b1f541f05a314cbff3b49f5dd218adbc2beb
1 typedef /*@null@*/ struct _list
3 /*@only@*/ char *this;
4 /*@null@*/ /*@only@*/ struct _list *next;
5 } *list;
7 extern /*@out@*/ /*@only@*/ void *
8 smalloc (size_t);
10 void
11 list_addh (list l, /*@only@*/ char *e)
13 if (l != NULL)
15 while (l->next != NULL)
17 l = l->next;
20 l->next = (list) smalloc (sizeof (*l->next));
21 l->next->this = e;