The listadd function was incorrectly written in the list.h file instead of the list.c file. This commit fixes the issue.
See previous commit message.