Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   replace a part of character buffer....! (http://www.go4expert.com/forums/replace-part-character-buffer-t20840/)

transfernly 2Feb2010 15:00

replace a part of character buffer....!
 
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....

xpi0t0s 4Feb2010 13:48

Re: replace a part of character buffer....!
 
Think of it as three strings: "DESCRIBE rtsp://<ip-addr>:", "9000", "/2.sdp RTSP/1.0..."


All times are GMT +5.5. The time now is 21:51.