mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 19:33:15 +01:00
15 lines
184 B
C
15 lines
184 B
C
#include <errno.h>
|
|
#include <stdio.h>
|
|
|
|
int errno_variable;
|
|
|
|
void perror(const char *str)
|
|
{
|
|
printf("%s: %d\n", str, errno);
|
|
}
|
|
|
|
int *__errno_location(void)
|
|
{
|
|
return &errno_variable;
|
|
}
|