/*------------------------------------------------------------------------- * * 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.6 1997/01/25 22:52:08 scrappy Exp $ * *------------------------------------------------------------------------- */ #include #include "rlstubs.h" char * readline(const char *prompt) { static char buf[500]; printf("%s", prompt); return fgets(buf, 500, stdin); } int write_history(const char *dum) { return 0; } int using_history(void) { return 0; } int add_history(const char *dum) { return 0; }