摘要: #include #include #include #include /* * EOF: 符号常量,其值为-1. * fgets() 最多读取int-1个字符,遇换行或EOF即返回. * fputs() 写文件时,忽略字符串截止符'\0'. * fread()和fwrite() 数据块读写,多用于... 阅读全文
posted @ 2015-05-16 09:35 曾志凌 阅读(356) 评论(0) 推荐(0) 编辑
摘要: #include int cpystr (char *pss, char *pds){ while((*pds=*pss)!='\0') /*一是把pss指向的源字符串复制到pds所指向的目标字符串中, 二是判断所复制的字符是否为’\0’,若是则... 阅读全文
posted @ 2015-05-16 09:26 曾志凌 阅读(1164) 评论(0) 推荐(0) 编辑