An error occurs in this part of the code:
if (acc > cutoff || (acc == cutoff && c > cutlim)) { any = -1; acc = ULONG_MAX; errno = ERANGE; } Ошибка: line 53: error: expected an expression errno = ERANGE; The source code of the function code is taken here: strtoul.c
The value of the variable is declared in errno.h. The variable itself is declared in the local file errno_local.h, which is connected to the .c file:
#include "errno.h" #ifndef errno #define errno #endif As I read, the variable errno is declared in errno.h and is connected to files as
extern int errno; But there it was not announced. So I created a local file. As far as I know, with this declaration, the variable automatically becomes an integer type. Right?