summaryrefslogtreecommitdiffstats
path: root/build/has/strerror-r-gnu.c
blob: 26ca0ee73b4da6ba78bf2dae1ae58907f727a9f5 (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 a pointer
	return *strerror_r(ENOMEM, buf, sizeof(buf));
}