equal
deleted
inserted
replaced
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]); |