made work: inserting a value in a list at a given index
This commit is contained in:
@@ -24,6 +24,11 @@ int main() {
|
||||
|
||||
listPrint(l);
|
||||
|
||||
printf("inserting at index 1\n");
|
||||
listInsertAt(l, 1, FLOAT, &(float){6.67});
|
||||
|
||||
listPrint(l);
|
||||
|
||||
printf("if you are finished working with the list BEFORE the immediate end of the program, run 'listCleanup(list_t*)', otherwise it is not strictly necessary\n");
|
||||
listCleanup(l);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user