This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] stpcpy comes from Turbo C [BZ #3629]


The earlierst reference I could find is in a German book on Borland's
Turbo C programming environment (Ekkehard Kaier, Edwin Rudolfs,
»Turbo C Grundkurs«, first published in 1988).  It is not generally
available on current Microsoft platforms, and there are online
references that claim that it was not part of earlier Microsoft C
environments.  This suggests that the previous speculative attribution
to MS-DOS (sic) was incorrect.

2016-05-10  Florian Weimer  <fweimer@redhat.com>

	[BZ #3629]
	* manual/string.texi (Copying Strings and Arrays): Document
	provenience of the stpcpy function.

diff --git a/manual/string.texi b/manual/string.texi
index 016fd0b..f22d2ac 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -612,9 +612,8 @@ and @samp{bar} to produce @samp{foobar}, which it then prints.
 @include stpcpy.c.texi
 @end smallexample
 
-This function is not part of the ISO or POSIX standards, and is not
-customary on Unix systems, but we did not invent it either.  Perhaps it
-comes from MS-DOG.
+This function is a Turbo C extension.  It is not part of the ISO or
+POSIX standards.
 
 Its behavior is undefined if the strings overlap.  The function is
 declared in @file{string.h}.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]