missing.cpp
来自「伯克利做的SFTP安全文件传输协议」· C++ 代码 · 共 26 行
CPP
26 行
// missing.cc// code for missing.h// copyright SafeTP Development Group, Inc., 2000 Terms of use are as specified in license.txt#include "missing.h" // this module#include <ctype.h> // tolowerint missing_stricmp(char const *s1, char const *s2){ while (*s1 && *s2) { // the choice between tolower and toupper affects lexicographic // comparisons between letters and the symbols between Z and a; // I don't know which is the "correct" way. int d = tolower(*s1) - tolower(*s2); if (d != 0) { return d; } s1++; s2++; } // one or both are at the null terminator return *s1 - *s2;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?