how can i remove the special characters
hi iam print the string variable .
suppse:
while(str!=NULL)
printf("******* %s ********** %d ",str,strlen(str));
output as:
*srinu ******** 5
*
phani******** 63
*srinu ******** 5
*
phani******** 63
so my problem is how can i thedata "phani" from .
****
phani******** 63
thank u ,indavnce
sree
porter
October 24, 2007, 2:37am
2
Which characters do you want to remove?
look at these
"
phani"
i thins i want to remove spaces and special characters .
so finally i want "phani " as a output.
thank u,
sree
porter
October 24, 2007, 2:54am
4
how much do you know about C programming?
I would have a function which determines whether a character should be included.
Then have
char *src=str;
char *dest=str;
while (*src)
{
char c=*src++;
if (valid_char(c)) { *dest++=c; }
}
*dest=0;