mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
16 lines
209 B
C
16 lines
209 B
C
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <libposix.h>
|
|
|
|
int errno_variable;
|
|
|
|
void perror(const char *str)
|
|
{
|
|
print_err("%s: %d\n", str, errno);
|
|
}
|
|
|
|
int *__errno_location(void)
|
|
{
|
|
return &errno_variable;
|
|
}
|