stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread Joerg Schilling
Casper Dik wrote: > 2. Discussion > >Linux, the various BSD operating systems and now IEEE Std 1003.1-2008 >provide the { |stpcpy()|, |stpncpy()|, |wcpcpy()|, |wcpncpy()| }-family >of functions. These behave similar as the |str*cpy()|/|wcs*cpy()| >family of functions, except tha

stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread Roland Mainz
James Carlson wrote: > Casper Dik writes: > >char *stpcpy(char *restrict s1, const char *restrict s2); > >char *stpncpy(char *restrict s1, const char *restrict s2, size_t n); > >wchar_t *wcpcpy(wchar_t restrict *ws1, const wchar_t *restrict ws2); > >wchar_t *wcpncpy(wchar_t restri

stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread Scott Rotondo
James Carlson wrote: > Casper Dik writes: >>char *stpcpy(char *restrict s1, const char *restrict s2); >>char *stpncpy(char *restrict s1, const char *restrict s2, size_t n); >>wchar_t *wcpcpy(wchar_t restrict *ws1, const wchar_t *restrict ws2); >>wchar_t *wcpncpy(wchar_t restrict *

stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread James Carlson
Casper.Dik at Sun.COM writes: > >My primary interest was |stpcpy()| to get performance of the locale > >codepaths fixed (we assume that we check at the _beginning_ that all > >allocated buffers have sufficient size (since the use of something like > >|stplcpy()| would completely kill the performanc

stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread James Carlson
Casper Dik writes: >char *stpcpy(char *restrict s1, const char *restrict s2); >char *stpncpy(char *restrict s1, const char *restrict s2, size_t n); >wchar_t *wcpcpy(wchar_t restrict *ws1, const wchar_t *restrict ws2); >wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restric

stpcpy, stpncpy, wcpcpy, wcpncpy in lib C [PSARC/2009/084 Self Review]

2009-02-10 Thread Casper Dik
Template Version: @(#)sac_nextcase %I% %G% SMI This information is Copyright 2009 Sun Microsystems 1. Introduction 1.1. Project/Component Working Name: stpcpy, stpncpy, wcpcpy, wcpncpy in lib C 1.2. Name of Document Author/Supplier: Author: Roland Mainz 1.3 Date of