www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/24/18:31:03

From: "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Some easy questions (for you!)
Date: Mon, 23 Feb 1998 15:40:06 -0800
Organization: Hewlett Packard
Lines: 49
Message-ID: <6ct1cj$rhk$1@rosenews.rose.hp.com>
References: <3 DOT 0 DOT 5 DOT 32 DOT 19980223220018 DOT 0079b850 AT vip DOT cybercity DOT dk>
NNTP-Posting-Host: ros51675cra.rose.hp.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nils Emil P. Larsen wrote in message
<3 DOT 0 DOT 5 DOT 32 DOT 19980223220018 DOT 0079b850 AT vip DOT cybercity DOT dk>...

>- 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 ??? */
strcat
======
Syntax
------
     #include <string.h>
     char *strcat(char *s1, const char *s2);

Description
-----------
This function concatenates S2 to the end of S1.

Return Value
------------
S1

Example
-------
     char buf[100] = "hello";
     strcat(buf, " there");

>- 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)" */
sprintf(Str1,"Birthday: %d\n",Int1);

>  Int1 = Str1 /* Int1 must contain the number in Str1 */

No can do.

>- Where can I get help for beginners in DJGPP?
Here is good assuming the questions are DJGPP specific.

>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
....).

Comp.lang.c is a good start, they have a faq for the c language in general.

HTH

Andy

- Raw text -


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