2007-11-13 18:20:05 UTC
bool a=false;
char* t=(char*)malloc(sizeof(char)*BUFFER_LENGTH);
char *n;
do{
printf("Enter text to be converted. (1 to quit). \n");
text = fgets(t,BUFFER_LENGTH,stdin);
n = strchr(t,'\n');
if(n)
n[0]='\0';
if(strcmp(t,"1")==0)
a=false;
else{
process (t);
a=true;
}
}while(a);
free(t);