… | |
… | |
165 | # endif |
165 | # endif |
166 | |
166 | |
167 | |
167 | |
168 | |
168 | |
169 | # ifndef HAVE_STPCPY |
169 | # ifndef HAVE_STPCPY |
170 | static char *stpcpy (char *dest, const char *src); |
170 | char *stpcpy (char *dest, const char *src); |
171 | # endif |
171 | # endif |
172 | # ifndef HAVE_MEMPCPY |
172 | # ifndef HAVE_MEMPCPY |
173 | static void *mempcpy (void *dest, const void *src, size_t n); |
173 | static void *mempcpy (void *dest, const void *src, size_t n); |
174 | # endif |
174 | # endif |
175 | #endif |
175 | #endif |
… | |
… | |
1175 | /* We don't want libintl.a to depend on any other library. So we |
1175 | /* We don't want libintl.a to depend on any other library. So we |
1176 | avoid the non-standard function stpcpy. In GNU C Library this |
1176 | avoid the non-standard function stpcpy. In GNU C Library this |
1177 | function is available, though. Also allow the symbol HAVE_STPCPY |
1177 | function is available, though. Also allow the symbol HAVE_STPCPY |
1178 | to be defined. */ |
1178 | to be defined. */ |
1179 | #if !_LIBC && !HAVE_STPCPY |
1179 | #if !_LIBC && !HAVE_STPCPY |
1180 | static char * |
1180 | char * |
1181 | stpcpy (char *dest, const char *src) |
1181 | stpcpy (char *dest, const char *src) |
1182 | { |
1182 | { |
1183 | while ((*dest++ = *src++) != '\0') |
1183 | while ((*dest++ = *src++) != '\0') |
1184 | /* Do nothing. */ ; |
1184 | /* Do nothing. */ ; |
1185 | return dest - 1; |
1185 | return dest - 1; |