
C基础知识
flyjackey767
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
字符串的strlen与sizeof
strlen的函数实现(linux)如下: 378/** 379 * strlen - Find the length of a string 380 * @s: The string to be sized 381 */ 382size_t strlen(const char *s) 383{ 384 const char *sc; 385 38原创 2011-11-08 13:35:16 · 349 阅读 · 0 评论 -
字符串分割函数strsep
#ifndef __HAVE_ARCH_STRPBRK/** * strpbrk - Find the first occurrence of a set of characters * @cs: The string to be searched * @ct: The characters to search for */char *strpbrk(const char原创 2011-11-08 13:51:12 · 684 阅读 · 0 评论 -
volatile的用法
volatile用于告知编译器,该变量不用缓存到寄存器,而是直接从内存读取。原创 2011-11-08 13:42:16 · 387 阅读 · 0 评论 -
memcpy和memmove的区别
memcpy和memmove的区别就是:memcpy不支持目标和源内存区域重叠memmove则支持 #ifndef __HAVE_ARCH_MEMCPY/** * memcpy - Copy one area of memory to another * @dest: Where to copy to * @src: Where to copy from * @原创 2011-11-08 13:41:06 · 533 阅读 · 0 评论