Verified Commit 29ae288d authored by A. Wilcox's avatar A. Wilcox

string: Add __strdup

parent eff455bb
......@@ -16,6 +16,12 @@ Build system
* Allow building against libobstack.
* Fix compatibility with Linux 4.17 and newer.
* Travis CI is now used.
Documentation
-------------
* README rewritten to conform to Adélie project standards.
malloc
------
......@@ -27,6 +33,11 @@ pthread
* Add pthread_getname_np.
string
------
* Add __strdup.
wchar
-----
......
......@@ -196,6 +196,16 @@ size_t __strcspn_c2(const char *str, int bad, int bad2)
return length;
}
/**
* 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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment