Difference between revisions of "Strlen"
From Mesham
Jump to navigationJump to search (Created page with '== Overview == This strlen[s] function will return the length of string ''s''. * '''Pass:''' A string * '''Returns:''' An integer == Example == var a:="hello"; var c:=strle…') |
m (4 revisions imported) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | This strlen | + | This strlen(s) function will return the length of string ''s''. |
− | * '''Pass:''' A | + | * '''Pass:''' A [[String]] |
− | * '''Returns:''' An | + | * '''Returns:''' An [[Int]] |
== Example == | == Example == | ||
− | var a:="hello"; | + | #include <string> |
− | + | ||
+ | function void main() { | ||
+ | var a:="hello"; | ||
+ | var c:=strlen(a); | ||
+ | }; | ||
+ | |||
+ | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:String Functions]] | [[Category:String Functions]] |