a2
This commit is contained in:
parent
9b3b2b5f39
commit
9f313e864b
@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
char *translate(const char *phrase);
|
char *translate(const char *phrase);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -55,7 +55,7 @@ char *translate(const char *phrase) {
|
|||||||
|
|
||||||
char *copy = malloc(plen + 1);
|
char *copy = malloc(plen + 1);
|
||||||
strcpy(copy, phrase);
|
strcpy(copy, phrase);
|
||||||
|
|
||||||
char word_buf[512];
|
char word_buf[512];
|
||||||
int first = 1;
|
int first = 1;
|
||||||
char *token = strtok(copy, " ");
|
char *token = strtok(copy, " ");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user