summaryrefslogtreecommitdiffstats
path: root/build/has/strerror-l.c
blob: 3dcc4d7085fb568f20136f4ce7905cbd519a2c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <errno.h>
#include <locale.h>
#include <string.h>

int main(void) {
	locale_t locale = duplocale(LC_GLOBAL_LOCALE);
	return !strerror_l(ENOMEM, locale);
}