diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-15 22:33:23 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-15 22:33:23 +0800 |
commit | 4b489bce26946636f4b9f18a12b31e6bfe4e3788 (patch) | |
tree | 71be343b8507f4325008710b44447c7e8cca0f5c /mbbsd/stuff.c | |
parent | 545c8a0cf74a4bfcd58527aca83dceb58d2fd8a9 (diff) | |
download | pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar.gz pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar.bz2 pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar.lz pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar.xz pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.tar.zst pttbbs-4b489bce26946636f4b9f18a12b31e6bfe4e3788.zip |
remove duplicate code (in common library)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4355 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 73515eca..9d05843e 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -43,24 +43,6 @@ subject(char *title) return title; } -int is_validuserid(const char *id) -{ - int len, i; - if(id==NULL) - return 0; - len = strlen(id); - - if (len < 2 || len>IDLEN) - return 0; - - if (!isalpha(id[0])) - return 0; - for (i = 1; i < len; i++) - if (!isalnum(id[i])) - return 0; - return 1; -} - int is_uBM(const char *list, const char *id) { |