util/StringAPI: stpcpy() was added in Bionic API level 21
This commit is contained in:
parent
735f62be0c
commit
0dfb27b7e5
@ -118,7 +118,7 @@ gcc_returns_nonnull gcc_nonnull_all
|
|||||||
static inline char *
|
static inline char *
|
||||||
UnsafeCopyStringP(char *dest, const char *src) noexcept
|
UnsafeCopyStringP(char *dest, const char *src) noexcept
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) || defined(__BIONIC__)
|
#if defined(_WIN32)
|
||||||
/* emulate stpcpy() */
|
/* emulate stpcpy() */
|
||||||
UnsafeCopyString(dest, src);
|
UnsafeCopyString(dest, src);
|
||||||
return dest + StringLength(dest);
|
return dest + StringLength(dest);
|
||||||
|
Loading…
Reference in New Issue
Block a user