diff options
Diffstat (limited to 'libbb/platform.c')
-rw-r--r-- | libbb/platform.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libbb/platform.c b/libbb/platform.c index 30d06e3a7..1441a84ac 100644 --- a/libbb/platform.c +++ b/libbb/platform.c | |||
@@ -147,3 +147,14 @@ char* FAST_FUNC strsep(char **stringp, const char *delim) | |||
147 | return start; | 147 | return start; |
148 | } | 148 | } |
149 | #endif | 149 | #endif |
150 | |||
151 | #ifndef HAVE_STPCPY | ||
152 | char* FAST_FUNC stpcpy(char *p, const char *to_add) | ||
153 | { | ||
154 | while ((*p = *to_add) != '\0') { | ||
155 | p++; | ||
156 | to_add++; | ||
157 | } | ||
158 | return p; | ||
159 | } | ||
160 | #endif | ||