aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/rlstubs.c
blob: b753fab430b2dbae534cc118933422521f58c0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*-------------------------------------------------------------------------
 *
 * rlstubs.c--
 *    stub routines when compiled without readline and history libraries
 *
 * Copyright (c) 1994-5, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.2 1996/07/30 07:47:58 scrappy Exp $
 *
 *-------------------------------------------------------------------------
 */
#include <stdio.h>

char *
readline(char *prompt)
{
    static char buf[500];

    printf("%s", prompt);
    return fgets(buf, 500, stdin);
}

int
write_history()
{
    return 0;
}

int
using_history()
{
    return 0;
}

int
add_history()
{
    return 0;
}