diff options
Diffstat (limited to 'doc/hstech.texi')
-rw-r--r-- | doc/hstech.texi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/hstech.texi b/doc/hstech.texi index da6417b..5d4efe5 100644 --- a/doc/hstech.texi +++ b/doc/hstech.texi @@ -1,7 +1,7 @@ @ignore This file documents the user interface to the GNU History library. -Copyright (C) 1988-2022 Free Software Foundation, Inc. +Copyright (C) 1988-2023 Free Software Foundation, Inc. Authored by Brian Fox and Chet Ramey. Permission is granted to make and distribute verbatim copies of this manual @@ -369,7 +369,7 @@ Returns 0 on success, or @code{errno} on failure. These functions implement history expansion. -@deftypefun int history_expand (char *string, char **output) +@deftypefun int history_expand (const char *string, char **output) Expand @var{string}, placing the result into @var{output}, a pointer to a string (@pxref{History Interaction}). Returns: @table @code @@ -517,9 +517,8 @@ The following program demonstrates simple use of the @sc{gnu} History Library. #include <stdio.h> #include <readline/history.h> -main (argc, argv) - int argc; - char **argv; +int +main (int argc, char **argv) @{ char line[1024], *t; int len, done = 0; |