摘要: 一、memchr函数,字符定位。 Locate character in block of memory//1、memchr函数,字符定位。 Locate character in block of memory // void * memchr ( const void *, int, size_t ); char * pch; char str[] = "Example string"; pch =(char *) memchr(str,'p',strlen(str)); //返回的指针 if(pch != NULL){ //找不到,返回NULL ... 阅读全文
posted @ 2012-03-15 10:09 从此醉 阅读(704) 评论(0) 推荐(1) 编辑