2009年9月23日

一些字符串函数的用法

摘要: 1. strdup()[代码]strdup()主要是拷贝字符串s的一个副本,由函数返回值返回,这个副本有自己的内存空间,和s不相干,在strdup中分配的内存要使用者自己释放。2. strchr()The strchr() function searches for the first occurrence of a string inside another string. strchr()函数... 阅读全文

posted @ 2009-09-23 09:50 race604 阅读(279) 评论(0) 推荐(0) 编辑

导航