Charat

From Mesham
Jump to navigationJump to search

Overview

This charat(s,n) function will return the character at position n of the string s.

Example

#include <string>

function void main() {
   var a:="hello";
   var c:=charat(a,2);
   var d:=charat("test",0);
};

Since: Version 0.41b