home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * VALIDUSER.C
- *
- * $Header: Beta:src/uucp/src/lib/RCS/validuser.c,v 1.1 90/02/02 12:08:42 dillon Exp Locker: dillon $
- *
- * (C) Copyright 1989-1990 by Matthew Dillon, All Rights Reserved.
- */
-
- #include "stdio.h"
- #include "config.h"
-
- Prototype int ValidUser(const char *);
-
- int
- ValidUser(str)
- const char *str;
- {
- if (*str == '|' || *str == '@')
- return(0);
- while (*str) {
- if (*str < 32 || *str > 126)
- return(0);
- if (*str == ':')
- return(0);
- if (*str == '/')
- return(0);
- ++str;
- }
- return(1);
- }
-
-