home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume25
/
input-edit
/
part01
/
testgl.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-11-12
|
293 b
|
19 lines
#include <stdio.h>
char *getline(char *);
void gl_init(int), gl_cleanup(void);
main()
/*
* just echo user input lines, letting user edit them and move through
* history list
*/
{
char *p;
gl_init(80);
while ((p = getline("> ")) && *p)
fputs(p, stdout);
gl_cleanup();
}