| Ch Standard Edition Demos | |
|
This is the first example.
#include <stdio.h>
#include <string.h>
int main () {
string_t s, token;
s = stradd("abcd ", "1234 ", "ABCD");
printf("s = %s\n", s);
foreach (token;s) {
printf("token = %s\n", token);
}
}
The output is: s = abcd 1234 ABCD token = abcd token = 1234 token = ABCD Here is the second example:
word = then then thea c = t c = h |
|