summaryrefslogtreecommitdiff
path: root/libc/string/__glibc_strerror_r.c
blob: 2b856e9f5b4fb22b4244a5d75eaaf60bf7d8e097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2002     Manuel Novoa III
 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <features.h>
#include <string.h>

/* libc_hidden_proto(__glibc_strerror_r) */
/* libc_hidden_proto(__xpg_strerror_r) */

char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
{
    __xpg_strerror_r(errnum, strerrbuf, buflen);

    return strerrbuf;
}
libc_hidden_def(__glibc_strerror_r)