aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdio/getline.3
Commit message (Collapse)AuthorAgeFilesLines
* Remove _WITH_GETLINE and _WITH_DPRINTF guardsBaptiste Daroussin2016-07-301-30/+1
| | | | | | | | | | | | | When adding getline(3) and dprintf(3) into libc, those guards were added to prevent breaking too many ports. 7 years later the ports tree have been fixed, it is time to remove this FreeBSDism While here remove the extra parenthesis surrounding dprintf(3) Notes: svn path=/head/; revision=303524
* Fix the example: free the memory that was allocated by getline().Nick Hibma2014-07-311-0/+1
| | | | Notes: svn path=/head/; revision=269326
* The getline function returns the number of characters read, notEitan Adler2012-12-011-2/+2
| | | | | | | | | | | | written. Use clearer text for this. PR: docs/174023 Submitted by: Paul Procacci <pprocacci@gmail.com> Approved by: bcr (mentor) MFC after: 1 week Notes: svn path=/head/; revision=243753
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Update the documentation to reflect changes to the implementation inDavid Schultz2010-11-301-14/+14
| | | | | | | | | | r197752, which is related to handling of null buffer pointers. Also make a few minor wording changes. Reported by: jh@ Notes: svn path=/head/; revision=216086
* (no commit message)Matteo Riondato2009-12-161-1/+2
| | | | Notes: svn path=/head/; revision=200600
* Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advisedDavid Schultz2009-04-061-2/+2
| | | | | | | | | | | because it means getdelim() returns -1 for both error and EOF, and never returns 0. However, this is what the original GNU implementation does, and POSIX inherited the bug. Reported by: marcus@ Notes: svn path=/head/; revision=190773
* - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),David Schultz2009-02-281-0/+164
wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@ Notes: svn path=/head/; revision=189136