Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
strlen [2019/05/22 13:55] – created neilsstrlen [2019/05/22 20:15] (current) neils
Line 3: Line 3:
 Syntax: Syntax:
  
-  strlen!(<string expression>)+  strlen!(<string pointer>)
      
-The ''STRLEN()'' function returns the length of a string. The function accepts a string expression (a literal string, a string pointer or a string pointer expression) and returns a byte.+The ''STRLEN()'' function returns the length of a string. The function accepts a string pointer (a literal string, a string pointer or a string pointer expression) as its single argument and returns a byte.
  
 Example: Example:
Line 11: Line 11:
   a$ = "xc=basic"   a$ = "xc=basic"
   print strlen!(a$)   print strlen!(a$)
-  rem -- output: 8+  rem -- outputs: 8 
 +  print strlen!("hello world"
 +  rem --outputs: 11