summaryrefslogtreecommitdiffstats
path: root/util/yearsold.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 05:35:23 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 05:35:23 +0800
commite8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch)
treeeb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/yearsold.c
parentc0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff)
downloadpttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.gz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.bz2
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.lz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.xz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.zst
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.zip
only one shared memory
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/yearsold.c')
-rw-r--r--util/yearsold.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/util/yearsold.c b/util/yearsold.c
index 74e711ee..3124d778 100644
--- a/util/yearsold.c
+++ b/util/yearsold.c
@@ -1,21 +1,14 @@
-/* $Id: yearsold.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */
+/* $Id: yearsold.c,v 1.2 2002/06/06 21:34:15 in2 Exp $ */
/* 站上年齡統計 */
-#include <stdio.h>
-#include <string.h>
-#include <time.h>
-#include <sys/types.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "util.h"
+#include "bbs.h"
#define MAX_LINE 16
struct userec_t cuser;
void
- outs(fp, buf, mode)
+fouts(fp, buf, mode)
FILE *fp;
char buf[], mode;
{
@@ -88,12 +81,12 @@ int main()
year = act[j];
if (year && (max > year) && (max - item <= year))
{
- outs(fp, buf, '7');
+ fouts(fp, buf, '7');
fprintf(fp, "%-3d", year);
}
else if (max <= year)
{
- outs(fp, buf, '4');
+ fouts(fp, buf, '4');
fprintf(fp, "█ ");
}
else