🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1212

Re: scrcpy implementation question

#1212
From: 24-Aug-1992 1243
Date: Mon, 24 Aug 1992 03:46
18 lines
1286 bytes
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.
Technical Details
Message-ID: <9208240346.AA25574@enet-gw.pa.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ames!agate!ucbvax!jit081.enet.dec.com!diamond

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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