blob: 7250da07d307f5a66391fbddf7f0ab7159e1afa2 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
4 *
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
7
8#include <features.h>
9#include <string.h>
10#include "_syserrmsg.h"
11
12
13char *strerror(int errnum)
14{
15 static char buf[_STRERROR_BUFSIZE];
16
17 __xpg_strerror_r(errnum, buf, sizeof(buf));
18
19 return buf;
20}
21libc_hidden_def(strerror)