home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
cprog
/
actlib12.zip
/
STRINGS.ZIP
/
ISALNUM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-25
|
531b
|
26 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "strings.h"
#include <ctype.h>
/***
* Function : strisalnum
*
* Description : Tests if a string contains only alphanumerical character
*
* Parameters : in char *string
*
* Return : 1 if string contains only alphanumerical characters.
* 0 otherwise
*
* OS/Compiler : All
***/
int strisalnum( char *string )
{
while ( isalnum(*string++) );
return( ! *--string );
}