While using the errno, I once read words that
It is important to include
errno.hrather than providing your own
extern int errno, sinceerrnois implemented in a thread-safe
manner that is more than just a simple globalint.
How does the thread-safe manner impact the difference between #include and extern ?
It’s not the extern vs #include that matters
errno is defined in the header as
Each thread has it’s own errno in it’s own address space