blob: a25dd7cc37ce57d2e1cba73f41026787c4825591 (
plain) (
tree)
|
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char msg[] = "toto tata titi";
char* ptr;
char* p;
p = msg;
do
{
ptr = strchr(p, ' ');
ptr++;
printf (":%s:\n", ptr);
p++;
}
while (*p);
return 0;
}
|