Hello All
i am trying to compile a simple code for the strtok but getting the error as
segmentation fault ( core dumped ) .. any help would be appreciated.
#include <stdio.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
main()
{
char *test="asim.nazeer.helo.me";
char *rsl=strtok(test,".");
//while(1)
//{
printf("%s",rsl);
//}
}