We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6355f38 commit f02f893Copy full SHA for f02f893
libc/src/time/linux/localtime_s.cpp
@@ -14,7 +14,7 @@ namespace LIBC_NAMESPACE_DECL {
14
// windows only, implemented in gnu/linux for compatibility reasons
15
LLVM_LIBC_FUNCTION(int, localtime_s, (const time_t *timer, struct tm *input)) {
16
if (timer == nullptr) {
17
- return nullptr;
+ return -1;
18
}
19
20
return time_utils::localtime_s_internal(timer, input);
0 commit comments