lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Speaking of which... there's a point I don't understand in l_strcmp():
> 
>      int temp = strcoll(l, r);
> 
> what happens if neither string has a '\0' terminator? Does strcoll() go 
> ahead reading memory (possibly causing an exception or other undesired 
> behavior)?

Read the comments in the code. In Lua all strings have a '\0' terminator.