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)); }