Today we have run into a little problem, too tiny for me to have paid my attention to
to make the function work better we change its internalsPHP Code:int processString(xxx)
{
//do something
return non-null terminated string length
}
This phenonmenon can be observed by use of mutibyte to wide char conversions, string copy , concatenation functions of MS etcPHP Code:int processString(xxx)
{
//do something
return null terminated string length
}
Should I minus one in the return value of the second function to match both versions ? Thank you.




Reply With Quote