7 /* predicate if string is all printable
9 /* #include <stringops.h>
11 /* int allprint(buffer)
12 /* const char *buffer;
14 /* allprint() determines if its argument is an all-printable string.
18 /* The null-terminated input string.
22 /* The Secure Mailer license must be distributed with this software.
25 /* IBM T.J. Watson Research
27 /* Yorktown Heights, NY 10598, USA
35 /* Utility library. */
37 #include "stringops.h"
39 /* allprint - return true if string is all printable */
41 int allprint(const char *string
)
48 for (cp
= string
; (ch
= *(unsigned char *) cp
) != 0; cp
++)
49 if (!ISASCII(ch
) || !ISPRINT(ch
))