write function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

write function

Does the write function always return the number of bytes written or only when asked for?

19th Jun 2017, 12:34 PM
Visnu P Kumarr
Visnu P Kumarr - avatar
2 Answers
0
I meant during successful writing.
19th Jun 2017, 12:36 PM
Visnu P Kumarr
Visnu P Kumarr - avatar
0
You cannot "ask" a function to return something - it either returns it or note. Whether you do anything with the returned value... that's another matter :)
19th Jun 2017, 3:58 PM
Bogdan Sass
Bogdan Sass - avatar