diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-12 09:42:23 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-12 09:42:23 +0800 |
commit | 9a12adf6d29cdefc98afe2566a9e5479489f111b (patch) | |
tree | 6e2b911398cb6dcb08b183ab645817e098182968 /util/poststat.c | |
parent | 3d16ea67c380607528e7c8df0b2cc5a2f2636b9f (diff) | |
download | pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar.gz pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar.bz2 pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar.lz pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar.xz pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.tar.zst pttbbs-9a12adf6d29cdefc98afe2566a9e5479489f111b.zip |
* extract common functions as library.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3673 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/poststat.c')
-rw-r--r-- | util/poststat.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/util/poststat.c b/util/poststat.c index d18a3b70..8dfa6e5a 100644 --- a/util/poststat.c +++ b/util/poststat.c @@ -41,44 +41,6 @@ struct posttop } top[TOPCOUNT], *tp; -/* - woju - Cross-fs rename() - */ - -int Rename(const char *src, const char *dst) -{ - - if (rename(src, dst) == 0) - return 0; -/* - sprintf(cmd, "/bin/mv %s %s", src, dst); - return system(cmd); -*/ - return 0; -} - -int -ci_strcmp(s1, s2) - register char *s1, *s2; -{ - register int c1, c2, diff; - - do - { - c1 = *s1++; - c2 = *s2++; - if (c1 >= 'A' && c1 <= 'Z') - c1 |= 32; - if (c2 >= 'A' && c2 <= 'Z') - c2 |= 32; - if((diff = c1 - c2)) - return (diff); - } - while (c1); - return 0; -} - /* ---------------------------------- */ /* hash structure : array + link list */ |