diff options
Diffstat (limited to 'misc/examples/list_erase.c')
| -rw-r--r-- | misc/examples/list_erase.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/list_erase.c b/misc/examples/list_erase.c index 0201c2d9..211c5a5d 100644 --- a/misc/examples/list_erase.c +++ b/misc/examples/list_erase.c @@ -2,12 +2,12 @@ #include <stdio.h> #define i_type IList -#define i_val int +#define i_key int #include <stc/clist.h> -int main () +int main(void) { - IList L = c_make(IList, {10, 20, 30, 40, 50}); + IList L = c_init(IList, {10, 20, 30, 40, 50}); c_foreach (x, IList, L) printf("%d ", *x.ref); |
