Debian Codegraph @

testdata/liberrnotest/errno_test.c

raw
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2026 The Ebitengine Authors
3
4 #include <errno.h>
5
6 // setErrno fails the way a C library call does: it returns -1 and sets errno.
7 int setErrno(void) {
8 errno = ENOENT;
9 return -1;
10 }