summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 03:34:30 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 03:34:30 +0800
commit6458d8379fc2bf2262ecc55f753aab70ea8a0ac4 (patch)
tree7539b5c2129abbcbdd1238c4f1df0a586538129a /mbbsd/stuff.c
parenteeaadc89e1a1d6e0a704a0f53206398b29d9ecf3 (diff)
downloadpttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar.gz
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar.bz2
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar.lz
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar.xz
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.tar.zst
pttbbs-6458d8379fc2bf2262ecc55f753aab70ea8a0ac4.zip
remove prototypes of not exist functions
use static keyword for local function git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index fdc5cdc2..1381d61f 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -489,6 +489,23 @@ vmsg(const char *fmt,...)
return vmsg_lines(b_lines, msg);
}
+int
+show_file(char *filename, int y, int lines, int mode)
+{
+ FILE *fp;
+ char buf[256];
+
+ if (y >= 0)
+ move(y, 0);
+ clrtoline(lines + y);
+ if ((fp = fopen(filename, "r"))) {
+ while (fgets(buf, sizeof(buf), fp) && lines--)
+ outs(Ptt_prints(buf, mode));
+ fclose(fp);
+ } else
+ return 0;
+ return 1;
+}
void
bell()