acl/lib_tls/util/printable.c

14 lines
294 B
C
Raw Normal View History

#include "StdAfx.h"
2014-11-19 00:25:21 +08:00
#include "stringops.h"
char *printable(char *string, int replacement)
{
char *cp;
int ch;
for (cp = string; (ch = *(unsigned char *) cp) != 0; cp++)
if (!ACL_ISASCII(ch) || !ACL_ISPRINT(ch))
*cp = replacement;
return (string);
}