注意,因为这段代码只处理缓冲区,所以除了大写转换特有的函数调用之外几乎没有特殊代码。
Note that since this code only deals with buffers, there is almost no code except the function call which is specific to uppercase-conversion.
对于实际的缓冲区处理,函数只需直接返回,就能够很好地处理大小为零的缓冲区。
For the actual buffer processing, the function is perfectly capable of handling zero-sized buffers by simply returning.
一旦字符串处理函数失败,就把目标缓冲区设成NULL。
一旦字符串处理函数失败,就把目标缓冲区设成NULL。
应用推荐