musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/assert.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016年02月10日 19:44:19 -0500
committerRich Felker <dalias@aerifal.cx>2016年02月10日 19:44:19 -0500
commit500c6886c654fd45e4926990fee2c61d816be197 (patch)
tree8a46228b4a5880e3f1c57499ef92d123d51dbe07 /include/assert.h
parent416d1c7a711807384cc21a18163475cf757bbcb5 (diff)
downloadmusl-500c6886c654fd45e4926990fee2c61d816be197.tar.gz
fix return value for fread/fwrite when size argument is 0
when the size argument was zero but nmemb was nonzero, these functions were returning nmemb, despite no data having been written. conceptually this is not wrong, but the standard requires a return value of zero in this case.
Diffstat (limited to 'include/assert.h')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 02:01:20 +0000

AltStyle によって変換されたページ (->オリジナル) /