您的位置: 首页 > IT文章 > strlen实现 strlen实现 分类: IT文章 • 2022-06-13 11:09:45 size_t my_strlen(const char* str) { const char* ptr = str; for (; ((int)ptr & 0x03) != 0; ++ptr) { if (*ptr == '