Difference between revisions of "Strlen"

From Mesham
Jump to navigationJump to search
m
Line 9: Line 9:
  
 
  #include <string>
 
  #include <string>
  var a:="hello";
+
   
var c:=strlen(a);
+
function void main() {
 +
    var a:="hello";
 +
    var c:=strlen(a);
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Revision as of 14:39, 15 April 2013

Overview

This strlen(s) function will return the length of string s.

Example

#include <string>

function void main() {
   var a:="hello";
   var c:=strlen(a);
};

Since: Version 0.41b