Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Dynamic string
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 858 of 1142
Post > Topic >>

Dynamic string

by subh.arya@[EMAIL PROTECTED] Dec 15, 2006 at 10:59 PM

Hi,

My objective is create a "dynamic" string. It will initially be
allocated with 1 byte. After 1st iteration the string will contain
"foo" after second iteration it will contain "foobars" third
"foobarsbaz" so on. ie, On an interative basis the size of the string
to be increased without erasing the  contents of the string.
How do I achieve this?
I don't want to use library functions like strcat ().

Subh
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 9 Posts in Topic:
Dynamic string
subh.arya@[EMAIL PROTECTE  2006-12-15 22:59:36 
Re: Dynamic string
CBFalconer <cbfalconer  2006-12-30 01:12:37 
Re: Dynamic string
Jack Klein <jackklein@  2006-12-30 01:13:52 
Re: Dynamic string
"Eric Czarny" &  2006-12-30 01:14:05 
Re: Dynamic string
WillerZ <newsreplies@[  2006-12-30 01:14:41 
Re: Dynamic string
"Cumaar" <gk  2006-12-30 01:15:01 
Re: Dynamic string
"Anand" <ana  2006-12-30 01:19:24 
Re: Dynamic string
CBFalconer <cbfalconer  2007-01-04 06:41:58 
Re: Dynamic string
Barry Schwarz <schwarz  2006-12-30 01:21:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 17:35:37 CDT 2008.