Objective
Implement a function that walks a singly linked list and invokes a caller-provided callback on the payload of each node.
Steps
$ list_apply([7 -> 8 -> 9], print_data)
[7][8][9]
$ list_apply(NULL, print_data)
(nothing printed)
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Implement a function that walks a singly linked list and invokes a caller-provided callback on the payload of each node.
Steps
$ list_apply([7 -> 8 -> 9], print_data)
[7][8][9]
$ list_apply(NULL, print_data)
(nothing printed)
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code