wangzhengquan
2021-01-18 87b5445e2a08a18bbbe1e0ce63d5f65e81bfb79f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
#include <string.h>
#include <stdio.h>
#include "usg_common.h"
 
int main(void)
{
    // char input[] = "A bird came down the walk";
     char input[] = "bird";
    printf("Parsing the input string '%s'\n", input);
    char *token = strtok(input, " ");
    while(token) {
        puts(token);
        token = strtok(NULL, " ");
    }
 }