stpcpy is Posix-2008, not __USE_GNU.

Rob Landley rob at
Fri Mar 16 11:06:47 UTC 2012

The standard:

uClibc's include/string.h:

#ifdef  __USE_GNU
/* Copy SRC to DEST, returning the address of the terminating '\0' in
DEST.  */
# if 0 /* uClibc: disabled */
extern char *__stpcpy (char *__restrict __dest, __const char *__restrict
     __THROW __nonnull ((1, 2));
# endif
extern char *stpcpy (char *__restrict __dest, __const char *__restrict
     __THROW __nonnull ((1, 2));

That #ifdef is a bug.


More information about the uClibc mailing list