Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ce88b414
...
ce88b4140f20b6a51762c2666d09711436c79acf
authored
2001-10-25 02:43:49 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
* lib/getline.c: change the return values from int to ssize_t
to follow GNU LibC.
1 parent
0798714e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
ChangeLog
lib/getline.c
ChangeLog
View file @
ce88b41
2001-10-24 Alain Magloire
* configure.in: Check for getdelim().
* lib/getline.c: change the return values from int to ssize_t
to follow GNU LibC.
2001-10-23 Alain Magloire
...
...
lib/getline.c
View file @
ce88b41
/* getline.c -- Replacement for GNU C library function getline
Copyright (C) 1993, 1996 Free Software Foundation, Inc.
Copyright (C) 1993, 1996
, 2001
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
...
...
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if defined __GNU_LIBRARY__ && HAVE_GETDELIM
in
t
ssize_
t
getline
(
lineptr
,
n
,
stream
)
char
**
lineptr
;
size_t
*
n
;
...
...
@@ -60,7 +60,7 @@ char *malloc (), *realloc ();
as necessary. Return the number of characters read (not including the
null terminator), or -1 on error or EOF. */
in
t
ssize_
t
getstr
(
lineptr
,
n
,
stream
,
terminator
,
offset
)
char
**
lineptr
;
size_t
*
n
;
...
...
@@ -134,7 +134,7 @@ getstr (lineptr, n, stream, terminator, offset)
return
ret
;
}
in
t
ssize_
t
getline
(
lineptr
,
n
,
stream
)
char
**
lineptr
;
size_t
*
n
;
...
...
@@ -143,7 +143,7 @@ getline (lineptr, n, stream)
return
getstr
(
lineptr
,
n
,
stream
,
'\n'
,
0
);
}
in
t
ssize_
t
getdelim
(
lineptr
,
n
,
delimiter
,
stream
)
char
**
lineptr
;
size_t
*
n
;
...
...
Please
register
or
sign in
to post a comment