home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!gatech!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: dave@cs.arizona.edu (Dave Schaumann)
- Newsgroups: comp.lang.c
- Subject: Re: adding strings together
- Message-ID: <1993Jan4.181006.7557@organpipe.uug.arizona.edu>
- Date: 4 Jan 93 18:10:06 GMT
- References: <83017@mavenry.UUCP>
- Sender: news@organpipe.uug.arizona.edu
- Reply-To: dave@cs.arizona.edu (Dave Schaumann)
- Organization: University of Arizona
- Lines: 17
- In-Reply-To: nider@mavenry.UUCP
-
- In article <83017@mavenry.UUCP>, nider@mavenry writes:
- > can't you just add strings together with a +, like:
- >
- > string3=string1+string2
-
- No.
-
- Strings in C are very low-level. You have to call a function for virtually
- every operation you want to do. Check out strcpy() and strcat() in your
- favorite language reference. This should lead you to several other string
- functions.
-
- You should also read the chapter on pointers and arrays in _The C Programming
- Lanugage_ (or any other book that discusses C).
-
- --
- Dave Schaumann dave@cs.arizona.edu
-