I\'m getting this warning: (-std=c99 -pedantic)
-std=c99 -pedantic
warning: implicit declaration of function ‘strndup’ [-Wimplicit-function-declaration]
strndup is a GNU extension, so you need to compile with -D_GNU_SOURCE on the command line, or stick a #define _GNU_SOURCE 1 in your source files before the #include lines
strndup
-D_GNU_SOURCE
#define _GNU_SOURCE 1
#include