Type: Posts; User: Matticus
char *zztop; scanf("%s", &zztop); You didn't allocate memory to hold your string.