Update split.c new is a reserved Keyword in C++ and should not be used as variable name. Therefore i propose the change from new to newstring.