Insert a character in a string

Discussion in 'C Programming' started by madmars, Feb 7, 2011.

  1. madmars

    madmars

    Joined:
    Feb 7, 2011
    Messages:
    1
    Hi!
    Lets say I have a string with numbers "123456789". How can I insert commas to the string to make it look like this "123,456,789"?I want to do this in C and i've tried all kind of methods but i did'n manage to do it.
    Can anyone help me please?

    Marius
     
    madmars, Feb 7, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Velvet
    Replies:
    9
    Views:
    14,842
    Joerg Jooss
    Jan 19, 2006
  2. Brand Bogard

    8 bit character string to 16 bit character string

    Brand Bogard, May 25, 2006, in forum: C Programming
    Replies:
    8
    Views:
    742
    those who know me have no need of my name
    May 28, 2006
  3. Water Cooler v2

    Insert a new line character into a string literal

    Water Cooler v2, Apr 18, 2006, in forum: Javascript
    Replies:
    4
    Views:
    378
    Michael Winter
    Apr 18, 2006
  4. Amol
    Replies:
    15
    Views:
    998
    Thomas 'PointedEars' Lahn
    May 22, 2009
  5. Bart Vandewoestyne
    Replies:
    8
    Views:
    744
    Bart Vandewoestyne
    Sep 25, 2012
Loading...

Share This Page