// // Created by yudw on 2017/8/7. // #pragma once #include <cassert> namespace yudw { char* strcpy(char *dest, const char *src) { assert(dest != nullptr && src != nullptr); char *p = dest; while ((*p++ = *src++) != '\0'); return dest; } }
// // Created by yudw on 2017/8/7. // #pragma once #include <cassert> namespace yudw { char* strcpy(char *dest, const char *src) { assert(dest != nullptr && src != nullptr); char *p = dest; while ((*p++ = *src++) != '\0'); return dest; } }