strrevcpy
本帖最后由 永恒的蓝色梦想 于 2020-6-12 21:47 编辑闲着没事,写了个 strrevcpy 。
虽然说很简单,但为什么不水一贴呢?(滑稽)
代码:char* __cdecl strrevcpy(char* const _Destination, char const* const _Source) {
if (_Destination && _Source) {
char* to = _Destination;
char const* from = _Source;
while (*from) {
++from;
}
while (from-- != _Source) {
*to++ = *from;
}
*to = '\0';
return _Destination;
}
return 0;
} 育碧育碧 起飞! {:10_275:} {:10_254:}
页:
[1]