Added stpcpy(3).
This commit is contained in:
parent
a06902baf6
commit
8d18993584
|
@ -37,6 +37,7 @@ void* memchr(const void*, int, size_t);
|
|||
int memcmp(const void*, const void*, size_t);
|
||||
void* memcpy(void* restrict, const void* restrict, size_t);
|
||||
void* memset(void*, int, size_t);
|
||||
char* stpcpy(char* restrict, const char* restrict);
|
||||
char* strcat(char* restrict, const char* restrict);
|
||||
char* strchr(const char*, int);
|
||||
int strcmp(const char*, const char*);
|
||||
|
@ -55,7 +56,6 @@ char* strtok_r(char* restrict, const char* restrict, char** restrict);
|
|||
#ifndef SORTIX_UNIMPLEMENTED
|
||||
void* memccpy(void* restrict, const void* restrict, int, size_t);
|
||||
void* memmove(void*, const void*, size_t);
|
||||
char* stpcpy(char* restrict, const char* restrict);
|
||||
char* stpncpy(char* restrict, const char* restrict, size_t);
|
||||
int strcoll_l(const char*, const char*, locale_t);
|
||||
char* strdup(const char*);
|
||||
|
|
|
@ -217,6 +217,13 @@ namespace Maxsi
|
|||
return Compare(s1, s2);
|
||||
}
|
||||
|
||||
extern "C" char* stpcpy(char* s1, const char* s2)
|
||||
{
|
||||
char* result = Copy(s1, s2);
|
||||
result += Length(s1);
|
||||
return result;
|
||||
}
|
||||
|
||||
#if 0
|
||||
char* Combine(size_t NumParameters, ...)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue