Luna/libc/src/string.cpp
apio 377b8bea43
All checks were successful
continuous-integration/drone/push Build is passing
libc: Adjust comment in string.cpp
2023-03-12 10:45:21 +01:00

15 lines
344 B
C++

#define _LUNA_SYSTEM_ERROR_EXTENSIONS
#include <luna/SystemError.h>
#include <string.h>
extern "C"
{
// All other string functions 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));
}
}