summaryrefslogtreecommitdiffstats
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-12-24 20:24:08 +0000
committerache <ache@FreeBSD.org>1997-12-24 20:24:08 +0000
commit7bbce1048f6b1d616d9d1a7a290a7e91f36e5e8b (patch)
tree33ed3c18ab2a1c16d7025dcb0c978fbe8e3ccf9b /lib/libc/Makefile
parent37887cee9ae3ceaaf766e309269edfedaac79810 (diff)
downloadFreeBSD-src-7bbce1048f6b1d616d9d1a7a290a7e91f36e5e8b.zip
FreeBSD-src-7bbce1048f6b1d616d9d1a7a290a7e91f36e5e8b.tar.gz
1) Oops! Insert again if (n == 0) return 0.
Final word is Bruce's quote: C9x specifies the BSD4.4-Lite behaviour: [#3] ... Thus, the null-terminated output has been completely written if and only if the returned value is less than n. It means that if we not have any null-terminated output as for n == 0 we can't return value less than n, so we forced to return value equal to n i.e. 0 The next good thing is glibc compatibility, of course. 2) Do check for too big n in machine-independent way. 3) Minor optimization assuming EOF is < 0
Diffstat (limited to 'lib/libc/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud