testcase.c
changeset 48 b94d657a9acb
parent 29 7abf6146898e
child 61 4b4c97f179da
equal deleted inserted replaced
47:63adb261de90 48:b94d657a9acb
    14     char line[83];
    14     char line[83];
    15     char *token;
    15     char *token;
    16 
    16 
    17     if (argc != 4) {
    17     if (argc != 4) {
    18         printf ("Usage: %s (char*)string (char*)delim1 (char*)delim2\n", argv[0]);
    18         printf ("Usage: %s (char*)string (char*)delim1 (char*)delim2\n", argv[0]);
    19         return 0;
    19         return EXIT_FAILURE;
    20     }
    20     }
    21 
    21 
    22     snprintf (line, 80, "%s\r\n", argv[1]);
    22     snprintf (line, 80, "%s\r\n", argv[1]);
    23 
    23 
    24     token = strtok (line, argv[2]);
    24     token = strtok (line, argv[2]);