home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / c / 2494 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.2 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!agate!ucbvax!jit081.enet.dec.com!diamond
  2. From: diamond@jit081.enet.dec.com (24-Aug-1992 1243)
  3. Newsgroups: comp.std.c
  4. Subject: Re: scrcpy implementation question
  5. Message-ID: <9208240346.AA25574@enet-gw.pa.dec.com>
  6. Date: 24 Aug 92 03:46:45 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Lines: 18
  9.  
  10. pinkas@caraway.intel.com (Israel Pinkas) writes:
  11. >In order to avoid checking every byte, they plan to copy past the terminator
  12. >('\0'), and copy a number of bytes equal to the smaller of the src or dst.
  13.  
  14. They are allowed to implement such an operation in a non-standard function
  15. that is provided as an implementation extension.  A friendly name for an
  16. extension would begin with two underscores.  The standard reserves to the
  17. implementation all identifiers that begin with scr, so it is also permitted
  18. for the extension to be named something like strfast.  However, we don't
  19. know what new names might be standardized in C-2001, so the second course
  20. might be a bit risky and unfriendly.
  21.  
  22. They are not allowed to make strcpy behave in that manner.  The standard
  23. defines what strcpy does, and you already showed some examples that would fail.
  24.  
  25. --
  26. Norman Diamond      diamond@jit081.enet.dec.com
  27. Digital did not write this message.
  28.