pattern.c

来自「unix network ,unix network unix networ」· C语言 代码 · 共 25 行

C
25
字号
/* * Copyright (c) 1993 W. Richard Stevens.  All rights reserved. * Permission to use or modify this software and its documentation only for * educational purposes and without fee is hereby granted, provided that * the above copyright notice appear in all copies.  The author makes no * representations about the suitability of this software for any purpose. * It is provided "as is" without express or implied warranty. */#include	"sock.h"#include	<ctype.h>voidpattern(char *ptr, int len){	char	c;	c = 0;	while(len-- > 0)  {		while(isprint((c & 0x7F)) == 0)			c++;	/* skip over nonprinting characters */		*ptr++ = (c++ & 0x7F);	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?