Sign in
third-party-mirror
/
R
/
7a8070cb389d53475afe0cf97ba6c2280b111c32
/
.
/
src
/
gnuwin32
/
getline
/
testgl.c
blob: a97523ca7b567e4039f68ebeb59a1d79e73ffa76 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
"getline.h"
main
()
/*
* just echo user input lines, letting user edit them and move through
* history list
*/
{
char
*
p
;
do
{
p
=
getline
(
"PROMPT>>>> "
);
gl_histadd
(
p
);
fputs
(
p
,
stdout
);
}
while
(*
p
!=
0
);
}