home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19194 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.0 KB

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