Skip to content
Snippets Groups Projects
Commit 233105bc authored by ZakyHermawan's avatar ZakyHermawan
Browse files

Fix typo

parent 025a097e
No related merge requests found
...@@ -32,10 +32,15 @@ bool isValidNode(list* start, int urutan) { ...@@ -32,10 +32,15 @@ bool isValidNode(list* start, int urutan) {
return true; return true;
} }
list* create_ll(list* node) { list* create_ll(list* start) {
int num; int num;
list *ptr, *newNode; list *ptr, *newNode;
if(start != NULL) {
printf("Data tidak kosong, hapus semua data terlebih dahulu!\n");
return start;
}
printf("Masukkan -1 untuk selesai\n"); printf("Masukkan -1 untuk selesai\n");
printf("Masukkan data: "); scanf("%d", &num); printf("Masukkan data: "); scanf("%d", &num);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment