int main (int argc, char **argv) {
    char *str, *s;
    struct stat statBuf;

    if (argc != 2) {
        fprintf (stderr, , basename (argv[0]));
        exit (1);
    }
    s = argv[1];
    while ((str = strtok (s, )) != NULL) {
        if (str != s) {
            str[-1] = '/';
        }
        if (stat (argv[1], &statBuf) == -1) {
            mkdir (argv[1], 0);
        } else {
            if (! S_ISDIR (statBuf.st_mode)) {
                fprintf (stderr, , argv[1]);
                exit (1);
            }
        }
        s = NULL;
    }
    return 0;
}