diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-02 09:03:12 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-02 09:03:12 -0500 |
commit | 29ae288dcc2673bb6af3d2f831002615f24e80e9 (patch) | |
tree | 2f1a4761138337997a2df07e8b4f048098a49f22 /libgcompat | |
parent | eff455bbec1a1c0200bd23b9b1851f36c0918208 (diff) | |
download | gcompat-29ae288dcc2673bb6af3d2f831002615f24e80e9.tar.gz gcompat-29ae288dcc2673bb6af3d2f831002615f24e80e9.tar.bz2 gcompat-29ae288dcc2673bb6af3d2f831002615f24e80e9.tar.xz gcompat-29ae288dcc2673bb6af3d2f831002615f24e80e9.zip |
string: Add __strdup
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/string.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcompat/string.c b/libgcompat/string.c index f4e0620..9207db4 100644 --- a/libgcompat/string.c +++ b/libgcompat/string.c @@ -197,6 +197,16 @@ size_t __strcspn_c2(const char *str, int bad, int bad2) } /** + * Alias for strdup. + * + * LSB 5.0: LSB-Core-generic/baselib---strdup-1.html + */ +char *__strdup(const char *string) +{ + return strdup(string); +} + +/** * Concatenate a string with part of another, with buffer overflow checking. * * LSB 5.0: LSB-Core-generic/baselib---strncat-chk-1.html |