Skip to content

Commit

Permalink
Merge pull request #126 from ruanhao/master
Browse files Browse the repository at this point in the history
Adjust example code for string.h
  • Loading branch information
tezc authored Oct 8, 2023
2 parents a909fb0 + 9c5f73d commit e7134b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string/sc_str.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool sc_str_replace(char **str, const char *rep, const char *with);
* char *save = NULL; // Must be initialized with NULL.
* const char *token;
*
* while ((token = sc_str_token_begin(str, &save, "-") != NULL) {
* while ((token = sc_str_token_begin(str, &save, "-")) != NULL) {
* printf("token : %s \n", token);
* }
*
Expand Down

0 comments on commit e7134b7

Please sign in to comment.