| www.delorie.com/archives/browse.cgi | search |
| From: | ams AT ludd DOT luth DOT se (Martin Str|mberg) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: reusing string variables |
| Date: | 9 Jan 1999 20:24:57 GMT |
| Organization: | University of Lulea, Sweden |
| Lines: | 21 |
| Message-ID: | <778dup$65j$1@news.luth.se> |
| References: | <3697AD5C DOT C9493E2E AT iocc DOT com> |
| NNTP-Posting-Host: | queeg.ludd.luth.se |
| X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
vern (vern AT iocc DOT com) wrote: : I am looking for a way to reuse the same string variable throughout a : function. i have a function that changes the contents of a string. : what i need to do is earase the old contents of the string, and replace : it with new contents. both the new and old ocntents in teh string are : the same length. he is the way i currently am using the strings: : : msg1=msg2; : msg2=msg3; : msg3=msg4; : msg4=msg; : : basicly im jsut rotating the contents of these variables. all are 78 : elements long, and char type. Perhaps strcpy() could be what you're looking for? Right, MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |