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

#include <locale.h>

int main(void) {
	locale_t locale = uselocale((locale_t)0);
	return locale == LC_GLOBAL_LOCALE;
}