summaryrefslogtreecommitdiffstats
path: root/mbbsd/guess.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-21 17:26:02 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-21 17:26:02 +0800
commite9a7b75babb76e1a3341161bcb6e80f3753b83c7 (patch)
tree04debdc816cd5405bba70904a1eea16ca6fca663 /mbbsd/guess.c
parent1428a82d1644166fdaa5285c67f236ac02687818 (diff)
downloadpttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.gz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.bz2
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.lz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.xz
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.zst
pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.zip
indent -i4
fix indent's word error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/guess.c')
-rw-r--r--mbbsd/guess.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/mbbsd/guess.c b/mbbsd/guess.c
index 1f683ce2..654f45dc 100644
--- a/mbbsd/guess.c
+++ b/mbbsd/guess.c
@@ -1,8 +1,8 @@
-/* $Id: guess.c,v 1.4 2002/07/05 17:10:27 in2 Exp $ */
+/* $Id: guess.c,v 1.5 2002/07/21 09:26:02 in2 Exp $ */
#include "bbs.h"
#define LOGPASS BBSHOME "/etc/winguess.log"
-static void
+static void
show_table(char TABLE[], char ifcomputer)
{
int i;
@@ -22,7 +22,7 @@ show_table(char TABLE[], char ifcomputer)
prints("\033[33m=================\033[m");
}
-static unsigned long int
+static unsigned long int
get_money(void)
{
int money, i;
@@ -57,7 +57,7 @@ get_money(void)
return money;
}
-static int
+static int
check_data(char *str)
{
int i, j;
@@ -86,7 +86,7 @@ get_data(int count)
return data;
}
-static int
+static int
guess_play(char *data, char *answer, int count)
{
int A_num = 0, B_num = 0;
@@ -110,7 +110,7 @@ guess_play(char *data, char *answer, int count)
return 0;
}
-static int
+static int
result(int correct, int number)
{
char a = 0, b = 0, i, j;
@@ -130,7 +130,7 @@ result(int correct, int number)
return 10 * a + b;
}
-static int
+static int
legal(int number)
{
char i, j;
@@ -144,7 +144,7 @@ legal(int number)
return 1;
}
-static void
+static void
initcomputer(char flag[])
{
int i;
@@ -156,7 +156,7 @@ initcomputer(char flag[])
flag[i] = 0;
}
-static int
+static int
computer(int correct, int total, char flag[], int n[])
{
int guess;
@@ -192,7 +192,7 @@ computer(int correct, int total, char flag[], int n[])
return 0;
}
-static void
+static void
Diff_Random(char *answer)
{
register int i = 0, j, k;
@@ -212,7 +212,7 @@ Diff_Random(char *answer)
#define lockreturn0(unmode, state) if(lockutmpmode(unmode, state)) return 0
-int
+int
guess_main()
{
unsigned long int money;