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