#pragma hdrstop
#include <stdio.h>
#include <conio.h>
#include <string.h>
#pragma argsused
char **text;
int i;
char str[] = ": Goolie p q h k clearLeftState ;";
char *token;
char seps[] = " ";
int n;
int count;
int sign = 0;
void store()
{
text[ n ] = new char[ strlen(token) + 1 ];
strcpy( text[ n ], token );
n++;
}
//-----------------------------------------------------------------------
int main(int argc, char* argv[])
{
text = new char*[100];
token = strtok(str,seps);
while( token != NULL )
{
//printf( "%s\n", token );
store();
count++;
token = strtok( NULL, seps );
}
for (n = 0 ; n < count; n++)
{
printf("text [%d] = %s\n", n, text[n]);
}