Modula-2 || Compiler & Tools || Library || Search Engine
PROCEDURE StrLen(s: ARRAY OF CHAR) : CARDINAL; PROCEDURE StrCat(VAR s1: ARRAY OF CHAR; s2: ARRAY OF CHAR); PROCEDURE StrCmp(s1, s2: ARRAY OF CHAR) : INTEGER; PROCEDURE StrCpy(VAR s1: ARRAY OF CHAR; s2: ARRAY OF CHAR);
StrLen returns the number of leading non-null characters in s.
StrCat appends a copy of string s2 to the end of string s1. Note that the resulting string is silently truncated if it does not fit into s1.
StrCmp compares its arguments and returns an integer greater than, equal to, or less than 0, according as s1 is lexicographically greater than, equal to, or less than s2. Note that the ordering just depends on the ordinal values of the characters and not on local conventions.
StrCpy copies s2 to s1. The result string s1 is silently truncated if s2 does not fit into s1.
Conversions | number to string conversions |
StrSpec | more sophisticated string operations |
StrToNum | string to number conversions |
Modula-2 || Compiler & Tools || Library || Search Engine