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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [getline/] [testgl.c] - Blame information for rev 272

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

Line No. Rev Author Line
1 8 hellwig
#include <stdio.h>
2
#include "getline.h"
3
 
4
main()
5
/*
6
 * just echo user input lines, letting user edit them and move through
7
 * history list
8
 */
9
{
10
    char *p;
11
 
12
    do {
13
        p = gl_getline("PROMPT>>>> ");
14
        gl_histadd(p);
15
        fputs(p, stdout);
16
    } while (*p != 0);
17
}

powered by: WebSVN 2.1.0

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