ldjhust

工欲善其事 必先利其器

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年4月21日

摘要: strcpy函数的原型是char *strcpy(char *strDest, const char *strSrc);不调用任何库函数实现strcpy的功能 1 // realize strcpy function without any library functions 2 #include <stdio.h> 3 #include <assert.h> 4 5 char *strcpy1(char *strDest, const char *strSrc) 6 { 7 assert (strDest != NULL); 8 9 assert (strSrc != 阅读全文
posted @ 2013-04-21 10:05 ldjhust 阅读(963) 评论(0) 推荐(0) 编辑