摘要: #include <stdio.h>#include <string.h>#include <assert.h>#include <stdlib.h>int main(int argc, char* argv[]){ char dst[] = "abcdefgh"; char *src = "xyzd"; unsigned char map[32] = {'0'} ; printf("%d", s... 阅读全文
posted @ 2012-12-06 16:00 helloweworld 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <string.h>#include <assert.h>#include <stdlib.h>int main(int argc, char* argv[]){ char dst[] = "abcxdeyf"; char *src = "afbecd"; printf("%d", strspn(dst, src)); return 0;}输出... 阅读全文
posted @ 2012-12-06 15:47 helloweworld 阅读(302) 评论(0) 推荐(0) 编辑
摘要: /****char *strstr(string1, string2) - search for string2 in string1**Purpose:* finds the first occurrence of string2 in string1**Entry:* char *string1 - string to search in* char *st... 阅读全文
posted @ 2012-12-06 13:02 helloweworld 阅读(755) 评论(0) 推荐(0) 编辑