函数结构

DeeLMind小于 1 分钟

函数结构

int strcmp_m(const char* p1, const char* p2)
{
	const unsigned char* s1 = (const unsigned char*)p1;
	const unsigned char* s2 = (const unsigned char*)p2;
	unsigned char c1, c2;
	do
	{
		c1 = (unsigned char)*s1++;
		c2 = (unsigned char)*s2++;
		if (c1 == '\0')
			return c1 - c2;
	} while (c1 == c2);
	return c1 - c2;
}
  • 函数参数

  • 函数返回

  • 局部变量

er

函数类型open in new window

上次编辑于:
贡献者: DeeLMind