Luna/libc/src/string.cpp

16 lines
355 B
C++
Raw Normal View History

#include <luna/SystemError.h>
#include <string.h>
extern "C"
{
2023-03-12 09:45:21 +00:00
// All other string functions are defined in luna/CString.cpp, so the same definitions can be used by both kernel
// and userspace.
extern "C++" const char* error_string(int);
char* strerror(int errnum)
{
return const_cast<char*>(error_string(errnum));
}
}