2013年1月23日

【面试题目】字符串函数汇总

摘要: 1 //求字符串长度 2 int strlen(const char *s) { 3 int n = 0; 4 while (*s++ != '\0') 5 n++; 6 return n; 7 } 8 9 //字符串拷贝,返回指针是为了实现链式操作,如s... 阅读全文

posted @ 2013-01-23 16:18 醉清风JM 阅读(234) 评论(0) 推荐(0)

【面试题目】经典shell面试题整理

摘要: 转自http://blog.csdn.net/ssjhust123/article/details/7814302一、取出/etc/passwd文件中shell出现的次数问题:下面是一个/etc/passwd文件的部分内容。题目要求取出shell并统计次数,shell是指后面的/bin/bash,/... 阅读全文

posted @ 2013-01-23 16:06 醉清风JM 阅读(504) 评论(0) 推荐(0)

导航