It's not quite... if ((ntokens_left -= (strlen(prompt) + strlen(slop))) <= 0) { printf("Cough up, sunshine\n"); ... But close ...