getline.3 (9c79794016d679440487dea61b3b986397c9ecbb) getline.3 (5d26f10fbb59d2b3d6726ff3bab205ee468f11e3)
1.\" Copyright (c) 2009 David Schultz <das@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 64 unchanged lines hidden (view full) ---

73accordingly.
74.Sh RETURN VALUES
75The
76.Fn getdelim
77and
78.Fn getline
79functions return the number of characters written, excluding the
80terminating
1.\" Copyright (c) 2009 David Schultz <das@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 64 unchanged lines hidden (view full) ---

73accordingly.
74.Sh RETURN VALUES
75The
76.Fn getdelim
77and
78.Fn getline
79functions return the number of characters written, excluding the
80terminating
81.Dv NUL .
81.Dv NUL
82character.
82The value \-1 is returned if an error occurs, or if end-of-file is reached.
83.Sh EXAMPLES
84The following code fragment reads lines from a file and
85writes them to standard output.
86The
87.Fn fwrite
88function is used in case the line contains embedded
89.Dv NUL

--- 75 unchanged lines hidden ---
83The value \-1 is returned if an error occurs, or if end-of-file is reached.
84.Sh EXAMPLES
85The following code fragment reads lines from a file and
86writes them to standard output.
87The
88.Fn fwrite
89function is used in case the line contains embedded
90.Dv NUL

--- 75 unchanged lines hidden ---