C'est pas bien compliqué. Fait rapidement:
int ligne = 1, mot = 1, len;
char src[] = "Bonjour.\nCeci est un test.\nJe test.", *c = src;
char dest[300];
while(1) {
__loop:
if(!*c) break;
else if(*c == '.') mot = 1;
else if(*c == '\n') ligne++;
else if(*c != ' ') goto __endloop;
c++;
goto __loop;
__endloop:
len = 0;
while(*c && *c != ' ' && *c != '.' && *c != '\n')
dest[len++] = *c++;
dest[len] = 0;
printf("%s (len: %d - ligne: %d - mot: %d)\n",
dest, len, ligne, mot++);
}
C++ (@++)