home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
getline.zip
/
testgl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-28
|
257b
|
18 lines
#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);
}