Skip to content

Commit

Permalink
Adjust example code for string.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Ruan committed Oct 7, 2023
1 parent a909fb0 commit 9c5f73d
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 9c5f73d

Please sign in to comment.