char *zztop;

scanf("%s", &zztop);


You didn't allocate memory to hold your string.