Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adélie Linux
gcompat
Commits
29ae288d
Verified
Commit
29ae288d
authored
May 02, 2019
by
A. Wilcox
🦊
Browse files
string: Add __strdup
parent
eff455bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.rst
View file @
29ae288d
...
...
@@ -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
-----
...
...
libgcompat/string.c
View file @
29ae288d
...
...
@@ -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.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment