mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-05 05:18:53 +08:00
9697f95b8f
This reverts commit 15d999759e
.
18 lines
376 B
C
18 lines
376 B
C
#include "StdAfx.h"
|
|
#include "stringops.h"
|
|
|
|
/* allprint - return true if string is all printable */
|
|
|
|
int allprint(const char *string)
|
|
{
|
|
const char *cp;
|
|
int ch;
|
|
|
|
if (*string == 0)
|
|
return (0);
|
|
for (cp = string; (ch = *(const unsigned char *) cp) != 0; cp++)
|
|
if (!ACL_ISASCII(ch) || !ACL_ISPRINT(ch))
|
|
return (0);
|
|
return (1);
|
|
}
|