Skip to content

Error when writing image (errno 13 returned by fopen_s) #1448

Answered by nothings
ilievkaloyan asked this question in Q&A
Discussion options

You must be logged in to vote

this is surely not a problem with stb library. you should try calling fopen_s and fopen from your own code with the same filename (mode is the string "wb") and see what behaviors you get.

also, fopen and fopen_s are not supposed to behave differently with respect to permissions, so that's weird.

good luck.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ilievkaloyan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants