#include <stdio.h>
#include "getline.h"

int 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);
    return 0;
}


syntax highlighted by Code2HTML, v. 0.9.1