Thread: how can i remove the special characters

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    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
    ****

    ******** 63
    ****srinu ******** 5
    ****

    ******** 63

    so my problem is how can i skip this.

    ****

    ******** 63

    thank u ,indavnce
    sree

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    So your second str contains a whole bunch of white-space and newlines.

    All the information you need has been suggested in your other threads, it's just a matter of applying them to your circumstance.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  2. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  3. Bubblesort with special characters
    By Zarniwoop in forum C Programming
    Replies: 3
    Last Post: 05-03-2008, 10:43 PM
  4. ascii characters video displaying on tv screen
    By deian in forum C Programming
    Replies: 6
    Last Post: 10-12-2004, 09:46 PM
  5. Special (non) Keyboard Characters
    By TechWins in forum C++ Programming
    Replies: 3
    Last Post: 05-01-2002, 12:08 AM