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