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…')
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This strlen[s] function will return the length of string ''s''.
+
This strlen(s) function will return the length of string ''s''.
  
* '''Pass:''' A string
+
* '''Pass:''' A [[String]]
* '''Returns:''' An integer
+
* '''Returns:''' An [[Int]]
  
 
== Example ==
 
== Example ==
  
 +
#include <string>
 
  var a:="hello";
 
  var a:="hello";
  var c:=strlen[a];
+
  var c:=strlen(a);
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:String Functions]]
 
[[Category:String Functions]]

Revision as of 13:21, 13 January 2013

Overview

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

Example

#include <string>
var a:="hello";
var c:=strlen(a);