摘要:
#include <stdio.h>#include <string.h>#include <assert.h>#include <stdlib.h>char *mystrncpy(char *dst, const char *src, size_t n){ assert(dst != NULL && src != NULL); char *dstCopy = dst; while (n && (... 阅读全文
posted @ 2012-12-05 17:43
helloweworld
阅读(923)
评论(0)
推荐(0)
摘要:
http://bbs.chinaunix.net/thread-25356-1-1.html #include <stdio.h>#include <string.h>#include <assert.h>#include <stdlib.h>char *strcpy(char *strDest, const char *strSrc){ assert(strDest != NULL && st... 阅读全文
posted @ 2012-12-05 16:55
helloweworld
阅读(219)
评论(0)
推荐(0)
摘要:
http://www.onmoso.com/android/331.html 阅读全文
posted @ 2012-12-05 16:55
helloweworld
阅读(341)
评论(0)
推荐(0)
摘要:
#include <assert.h>void assert(scalar expression);表达式为假,则调用abort终止程序的执行。也就是说,只有在满足表达式的情况下,程序才继续执行。 阅读全文
posted @ 2012-12-05 11:03
helloweworld
阅读(196)
评论(0)
推荐(0)

浙公网安备 33010602011771号