OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [getline/] [testgl.c] - Rev 159

Go to most recent revision | Compare with Previous | Blame | View Log

#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 = gl_getline("PROMPT>>>> ");
	gl_histadd(p);
	fputs(p, stdout);
    } while (*p != 0);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.