7 /* mask non-printable characters
9 /* #include <stringops.h>
11 /* char *printable(buffer, replacement)
15 /* printable() replaces non-ASCII or non-printable characters in its input
16 /* by the given replacement.
20 /* The null-terminated input string.
22 /* Replacement value for characters in \fIbuffer\fR that do not
23 /* pass the isprint(3) test.
27 /* The Secure Mailer license must be distributed with this software.
30 /* IBM T.J. Watson Research
32 /* Yorktown Heights, NY 10598, USA
40 /* Utility library. */
42 #include "stringops.h"
44 char *printable(char *string
, int replacement
)
49 for (cp
= string
; (ch
= *(unsigned char *) cp
) != 0; cp
++)
50 if (!ISASCII(ch
) || !ISPRINT(ch
))