diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-02-12 22:26:57 -0800 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-13 18:37:12 +0100 |
commit | dc50676cce35cdba3ecba3870c3f752408d6db70 (patch) | |
tree | a8c7861c43f656b1013a0e57672446d63ffdb263 /libbb | |
parent | 4ed3c52ce9b3ce5604c4fa075fda374f8cd01eea (diff) | |
download | busybox-w32-dc50676cce35cdba3ecba3870c3f752408d6db70.tar.gz busybox-w32-dc50676cce35cdba3ecba3870c3f752408d6db70.tar.bz2 busybox-w32-dc50676cce35cdba3ecba3870c3f752408d6db70.zip |
Move stpcpy replacement function into libbb
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-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 ccde2bf02..fe7ce1567 100644 --- a/libbb/platform.c +++ b/libbb/platform.c | |||
@@ -134,3 +134,14 @@ char* FAST_FUNC strsep(char **stringp, const char *delim) | |||
134 | return start; | 134 | return start; |
135 | } | 135 | } |
136 | #endif | 136 | #endif |
137 | |||
138 | #ifndef HAVE_STPCPY | ||
139 | char* FAST_FUNC stpcpy(char *p, const char *to_add) | ||
140 | { | ||
141 | while ((*p = *to_add) != '\0') { | ||
142 | p++; | ||
143 | to_add++; | ||
144 | } | ||
145 | return p; | ||
146 | } | ||
147 | #endif | ||