summaryrefslogtreecommitdiffstats
path: root/config/has/strerror-r-posix.c
blob: 41b2d30cd2fd0f17cc7e357e527a39b31f2c488b (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 <string.h>

int main(void) {
	char buf[256];
	// Check that strerror_r() returns an integer
	return 2 * strerror_r(ENOMEM, buf, sizeof(buf));
}