- 35 名前:デフォルトの名無しさん mailto:sage [2007/08/28(火) 20:47:08 ]
- >>33
#include<ctype.h> int mystrlen(int*pstr){ char*pstr_=(char*)pstr; int count = 0; for(;*pstr_;++pstr_) if(isspace(*pstr_)) ++count; return count; } void mystrcpy(int*pstr,int*pans){ char*pstr_=(char*)pstr; char*pans_=(char*)pans; do if(!isdigit(*pans_))*pstr_++ = *pans_; while(*pans++); }
|

|