putw is supposed to return 0 (not the value written) on success
authorRich Felker <dalias@aerifal.cx>
Wed, 4 Jul 2012 16:21:22 +0000 (12:21 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 4 Jul 2012 16:21:22 +0000 (12:21 -0400)
commit920baab81f98a3cae3436361cdd044afe21fe347
tree91238819c21d0cb3c5a4555857e1645028027203
parent98eddc677609c20796982f3171165700613e3cf2
putw is supposed to return 0 (not the value written) on success

this is not a standard but it's the traditional behavior and it's more
useful because the caller can reliably detect errors.
src/stdio/putw.c