home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
hamradio
/
wattcp.zip
/
ISSTRING.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-23
|
386b
|
19 lines
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int isstring( char *string, unsigned stringlen )
{
if ( (unsigned) strlen( string ) > stringlen - 1 ) return( 0 );
while ( *string ) {
if ( !isprint( *string++ )) {
string--;
if ( !isspace( *string++ ))
return( 0 );
}
}
return( 1 );
}