WoW:API strlen: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
---- | |||
{{WoW API}} | |||
Revision as of 05:56, 4 January 2006
string.len(s)
Return the length of the string passed.
> = string.len("Lua")
3
> = string.len("")
0
> = string.len("Lua\000user") -- Lua strings are 8 bit pure so \000 does not terminate
8