wangzhengquan
2021-01-25 3a5e5ca9bce4bd4956e59e76a95f0ec207d711ff
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, " ");
    }
 }