Files
clang-p2996/libc/src/string/strerror_r.h
Michael Jones a9f95b769e [libc] add strerror_r function
I've implemente the gnu variant of strerror_r since that seems to be the
one more relevant to what we're trying to do.

Differential Revision: https://reviews.llvm.org/D135227
2022-10-07 11:07:06 -07:00

21 lines
631 B
C++

//===-- Implementation header for strerror_r --------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_STRING_STRERROR_R_H
#define LLVM_LIBC_SRC_STRING_STRERROR_R_H
#include <stddef.h>
namespace __llvm_libc {
char *strerror_r(int err_num, char *buf, size_t buflen);
} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_STRING_STRERROR_R_H