All pastes #733095 Raw Edit

Something

public c v1 · immutable
·published 2007-10-11 14:55 UTC
rendered paste body
    /* get the command */    cmd = strtok(line, " \t\n");    /* get next word */    next = strtok(NULL, " \t\n");    /* check if this word contains ", if it does, fetch all words until next " */    if (strstr(next, "\"") != NULL) {        message = strcat(next+1, strtok(NULL, "\""));        printf("%s\n", message);    }