1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

replace a part of character buffer....!

Discussion in 'C' started by transfernly, Feb 2, 2010.

  1. transfernly

    transfernly New Member

    Joined:
    Dec 15, 2009
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    hi all....i have small problem with replacement of part of a character array.....

    my problem is i have character buffer

    buff[]

    the content in it is


    "DESCRIBE rtsp://<ip-addr>:9000/2.sdp RTSP/1.0

    CSeq: 1


    Bandwidth: 384000

    Accept-Language: en-US

    User-Agent:Windows NT 5.1Service Pack 2)"

    now here i want to replace "9000" with the number i wish....how can i do it...

    please help me out.....
    thank you....
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Think of it as three strings: "DESCRIBE rtsp://<ip-addr>:", "9000", "/2.sdp RTSP/1.0..."
     

Share This Page