Luna/libc/src/string.cpp
apio 8838e2cf22
Some checks failed
continuous-integration/drone/push Build is failing
Bring back the OS-Specific Toolchain on restart :^)
2023-01-06 17:35:07 +01:00

15 lines
400 B
C++

#define _LUNA_SYSTEM_ERROR_EXTENSIONS
#include <luna/SystemError.h>
#include <string.h>
extern "C"
{
// memcpy, memset, memcmp, memmove, strlen, strcmp, strcpy, strchr, strcat and strdup are defined in
// luna/CString.cpp, so the same definitions can be used by both kernel and userspace.
char* strerror(int errnum)
{
return const_cast<char*>(error_string(errnum));
}
}