mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-03 20:38:11 +08:00
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);
|
|
}
|