delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/09/15:40:53

From: vern <vern AT iocc DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: reusing string variables
Date: Sat, 09 Jan 1999 13:26:20 -0600
Organization: Posted via RemarQ, http://www.remarQ.com - Discussions start here!
Lines: 15
Message-ID: <3697AD5C.C9493E2E@iocc.com>
NNTP-Posting-Host: 204.214.235.145
Mime-Version: 1.0
X-Trace: 915910779 VRL06/YYIEB91CCD6C usenet58.supernews.com
X-Complaints-To: newsabuse AT remarQ DOT com
X-Mailer: Mozilla 4.06 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

Andrew F.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019