summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libreadline/examples/manexamp.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-12-06 03:16:45 +0000
committerache <ache@FreeBSD.org>1994-12-06 03:16:45 +0000
commita4fe90a250b63d3a1a94d716e876451fe786d866 (patch)
tree351a5738e9c046d7f2d71dd3c2ab7c759d21efa7 /gnu/lib/libreadline/examples/manexamp.c
parent46ecb27be87b8d41cc76e7f0ffa04d757de9db0b (diff)
downloadFreeBSD-src-a4fe90a250b63d3a1a94d716e876451fe786d866.zip
FreeBSD-src-a4fe90a250b63d3a1a94d716e876451fe786d866.tar.gz
Upgrade to version 2.0
Diffstat (limited to 'gnu/lib/libreadline/examples/manexamp.c')
-rw-r--r--gnu/lib/libreadline/examples/manexamp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/lib/libreadline/examples/manexamp.c b/gnu/lib/libreadline/examples/manexamp.c
index b7ec96a..3496efa 100644
--- a/gnu/lib/libreadline/examples/manexamp.c
+++ b/gnu/lib/libreadline/examples/manexamp.c
@@ -15,11 +15,11 @@ static char *line_read = (char *)NULL;
/* Read a string, and return a pointer to it. Returns NULL on EOF. */
char *
-do_gets ()
+rl_gets ()
{
/* If the buffer has already been allocated, return the memory
to the free pool. */
- if (line_read != (char *)NULL)
+ if (line_read)
{
free (line_read);
line_read = (char *)NULL;
@@ -35,7 +35,6 @@ do_gets ()
return (line_read);
}
-
/* **************************************************************** */
/* */
/* Writing a Function to be Called by Readline. */
@@ -93,4 +92,3 @@ invert_case_line (count, key)
rl_point = end - direction;
}
-
OpenPOWER on IntegriCloud