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 14:55]
neils created
strlen [2019/05/22 21:15]
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