mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-05 05:18:53 +08:00
9697f95b8f
This reverts commit 15d999759e
.
14 lines
294 B
C
14 lines
294 B
C
#include "StdAfx.h"
|
|
#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);
|
|
}
|