2010年7月12日

strcpy

摘要: [代码] 阅读全文

posted @ 2010-07-12 16:25 庄冠华 阅读(201) 评论(0) 推荐(0) 编辑

glibc 中的 strlen 高效实现

摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<string.h>#include<stdlib.h>#undefstrlen/*Returnthelengthofthenull-terminatedst... 阅读全文

posted @ 2010-07-12 15:34 庄冠华 阅读(334) 评论(0) 推荐(0) 编辑

面试遇到的题目:strstr 子串查找

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--char*strstr(char*buf,char*sub){char*bp,*sp;if(!*sub)returnbuf;while(*buf){bp=buf;sp=sub;do{if(!*sp)r... 阅读全文

posted @ 2010-07-12 15:28 庄冠华 阅读(340) 评论(0) 推荐(0) 编辑

导航