1//===-- Implementation of strsignal
2//----------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#include "src/string/strsignal.h"
11#include "src/__support/StringUtil/signal_to_string.h"
12#include "src/__support/common.h"
13
14namespace LIBC_NAMESPACE {
15
16LLVM_LIBC_FUNCTION(char *, strsignal, (int sig_num)) {
17 return const_cast<char *>(get_signal_string(err_num: sig_num).data());
18}
19
20} // namespace LIBC_NAMESPACE
21

source code of libc/src/string/strsignal.cpp