summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgets.3 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Consistently .Xr the corresponding wide char functions from char- andschwarze2017-12-011-2/+3
| | | | | string-handling <stdio.h> functions, like we already do it for <string.h>. Includes a smaller patch from <kshe59 at zoho dot eu>, OK jmc@.
* Stop recommending the non-standard and slightly dangerous fgetln(3).schwarze2016-08-271-4/+4
| | | | Recommend POSIX getline(3) instead.
* explicitly clarify that reading also stops after size-1 bytestedu2014-11-041-3/+5
|
* c11 compliance: remove gets()tedu2014-03-231-55/+10
|
* more library historyschwarze2013-07-171-2/+9
| | | | | facts checked by sobrado@ style tweaks and ok jmc@
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-051-3/+3
|
* Set errno to EINVAL when fgets is given a non-positive size.ray2009-06-021-2/+6
| | | | OK millert otto
* Say NUL when referring to \0cloder2007-09-071-3/+3
|
* Show how to use strcspn(3) to trim newlines.ray2007-08-081-7/+5
| | | | OK jmc and millert.
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* suceed -> succeed; from chad doughertyjmc2006-10-301-2/+2
|
* mark up `>';jmc2006-10-151-3/+3
|
* Add a CAVEAT section that describes how to properly trim a newline fromcloder2006-10-141-10/+41
| | | | | a string, being careful to deal with 0-length strings. Help and input from jmc, ok deraadt
* Make fgets description much clearer with respect to its exact behavior.cloder2006-10-141-7/+9
| | | | OK and input from deraadt, jmc, millert.
* - typos, punctuation, spacing, macro, layout, etc. fixesjaredy2005-07-261-2/+3
| | | | | | - avoid first person ok jmc
* Be correct in our man pages when talking about NUL termination (that is,cloder2005-02-251-2/+2
| | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-011-12/+12
| | | | | - kill unnecessary .Ns macros - add some man page section numbers to .Xr's
* Better English.pjanzen2003-05-171-3/+3
|
* Document behaviour when size = 1. ok millert@pjanzen2003-05-171-1/+14
|
* .Xr typos;jmc2003-03-061-3/+3
|
* correct check for strchr() failure in EXAMPLE; from pinskia@physics.uc.edupvalchev2002-07-201-2/+2
|
* Use the more likely pointer in a sample code fragment; miod@ ok.aaron2002-04-051-2/+2
|
* style(9) for the example; Alexander Yurchenkomillert2002-03-051-3/+3
|
* Various repairs, mostly to get rid of short lines.aaron2000-12-241-9/+5
|
* Repairs, mostly removing hard sentence breaks.aaron2000-04-181-2/+3
|
* fix example. ok aaron@ericj2000-02-191-2/+2
|
* typosderaadt1999-11-151-2/+2
|
* Add CAVEATS sections.aaron1999-09-151-1/+45
|
* - remove all trailing whitespaceaaron1999-07-091-3/+3
| | | | | | | | | | * except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
* punctuationaaron1999-05-251-2/+2
|
* .Pp macros do not belong immiedately after .Sh section header linesaaron1999-04-021-2/+1
|
* Fix RCS idstholo1996-08-191-3/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* int not size_t, checked against K&R pg247; netbsd pr#2664, msaitoh@spa.is.uec.ac.jpderaadt1996-07-311-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+153