17.04.2015, 22:06
because you are using strcmp in test, use
if(text[0] && !strcmp(text, ...)) // test ok
or add
if (!strlen(text)) return (0);
before test
if(text[0] && !strcmp(text, ...)) // test ok
or add
if (!strlen(text)) return (0);
before test