summaryrefslogtreecommitdiff
path: root/src/errno/__errno_location.c
blob: a0185780c531cc2a21edf9b0d059eac1b4c6c071 (plain)
1
2
3
4
5
6
7
8
9
#include <errno.h>
#include "libc.h"

int *__errno_location(void)
{
	static int e;
	if (libc.errno_location) return libc.errno_location();
	return &e;
}