From: orz Newsgroups: comp.os.msdos.djgpp Subject: Re: Some easy questions (for you!) Date: Mon, 23 Feb 1998 19:38:51 -0800 Organization: Worcester Polytechnic Institute Lines: 27 Message-ID: <34F240CB.65B8@atticus.com> References: <3 DOT 0 DOT 5 DOT 32 DOT 19980223220018 DOT 0079b850 AT vip DOT cybercity DOT dk> NNTP-Posting-Host: orz.res.wpi.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nils Emil P. Larsen wrote: The functions you asked about are strcat, itoa, and atoi, respectively. Warning: In C, you must make sure that there is enough room for the resulting string plus 1 extra character (to mark the end). The functions you asked for could have been found in the help. > > Thank you for DJGPP! > > I need some help for working with strings: > > - How do I add a string to the end of another: > e.g. Str1 = "Thank "; Str2 = " you!"; > Str3 = ???(Str1, Str2) /* Str3 must be: "Thank you!". What is ??? */ > > - How do I convert between strings and numbers? I want to use it like that: > Str1 = "Birthday: " + Int1 /* Str1 must be "Birthday: (value of int1)" */ > OR > Int1 = Str1 /* Int1 must contain the number in Str1 */ > > - Where can I get help for beginners in DJGPP? I don't think any of my > DJGPP-FAQ's contain info for people who don't know C. Especially are I > searching for help on the keywords (for, do...while, if...then...else ....). > > Thank you! > > Nils Emil P. Larsen