In words, what is this TTS function supposed to do?
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc, char**argv)
{
const char delim[] = " ";
char text[] = "231 number 73 word 1 2";
char *token = strtok(text, delim);
while ( token )
{
if ( isdigit(*token) )
{
puts(token);
}
token = strtok(NULL, delim);
}
return 0;
}
/* my output
231
73
1
2
*/
From your two threads, this is my best guess with what you might be asking.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314