5
/* mask non-printable characters
7
/* #include <stringops.h>
9
/* char *printable(buffer, replacement)
13
/* printable() replaces non-printable characters in its input
14
/* by the given replacement.
18
/* The null-terminated input string.
20
/* Replacement value for characters in \fIbuffer\fR that do not
21
/* pass the isprint(3) test.
25
/* The Secure Mailer license must be distributed with this software.
28
/* IBM T.J. Watson Research
30
/* Yorktown Heights, NY 10598, USA
38
/* Utility library. */
40
#include "stringops.h"
42
char *printable(char *string, int replacement)
47
for (cp = string; (ch = *(unsigned char *) cp) != 0; cp++)