diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:14:00 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:14:00 +0800 |
commit | 91cb487cf2a689ae2d970dd34213f8a8cdd03988 (patch) | |
tree | ade90e2ee36ad9f560530c48062f80ec6e54a0cc | |
parent | 6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c (diff) | |
download | pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar.gz pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar.bz2 pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar.lz pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar.xz pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.tar.zst pttbbs-91cb487cf2a689ae2d970dd34213f8a8cdd03988.zip |
change log_file() log_user()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1890 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/proto.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/proto.h b/include/proto.h index 40786439..b799695b 100644 --- a/include/proto.h +++ b/include/proto.h @@ -352,7 +352,6 @@ void my_send(char *uident); void show_call_in(int save, int which); void write_request (int sig); void log_usies(char *mode, char *mesg); -void log_user(char *msg); void system_abort(void); void abort_bbs(int sig); void del_distinct(char *fname, char *line); @@ -481,11 +480,11 @@ void out_lines(char *str, int line); #define not_alnum(ch) (ch < '0' || (ch > '9' && ch < 'A') || (ch > 'Z' && ch < 'a') || ch > 'z') #define pressanykey() vmsg_lines(b_lines, NULL) int vmsg_lines(int lines, const char *msg); +int log_user(const char *fmt, ...); time_t gettime(int line, time_t dt, char* head); void setcalfile(char *buf, char *userid); void stand_title(char *title); -//int getans(const char *fmt,...) GCC_CHECK_FORMAT(1,2); -char getans(char *); +char getans(const char *fmt,...); int getkey(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int vmsg(const char *fmt,...) GCC_CHECK_FORMAT(1,2); void trim(char *buf); @@ -496,7 +495,7 @@ void sethomepath(char *buf, char *userid); void sethomedir(char *buf, char *userid); char *Cdate(time_t *clock); void sethomefile(char *buf, char *userid, char *fname); -int log_file(char *filename, char *buf, int flags); +int log_file(char *fn, int ifcreate, const char *fmt,...); void str_lower(char *t, char *s); int strstr_lower(char *str, char *tag); int cursor_key(int row, int column); |