summaryrefslogtreecommitdiff
path: root/wk5/lect/list2.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/lect/list2.c')
-rw-r--r--wk5/lect/list2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wk5/lect/list2.c b/wk5/lect/list2.c
index 7da5a5b..86801ac 100644
--- a/wk5/lect/list2.c
+++ b/wk5/lect/list2.c
@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
}
n->number = number;
- n->
+ n->next = list;
+ list = n;
}
}