Because I am not sure if it is okay to post the sample code from the book here, please let me explain it with normal words.
I am learning C and tried some codes in my textbook which contained strerrorlen_s()
and strerror_s()
. When I compiled the code with clang on macOS, I was encountered with errors saying that implicit declaration of function 'strerror_s'/'strerrorlen_s' is invalid in C99.
It seemed that the author of the book compiled the code with visual C++, and I guessed that I got the errors because I used different compiler. Did I guess right?
Please let me know if there is no legal problem with posting sample codes from the textbook, and you want me to do so. I'll add the codes.
Thank you for your time.