all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
MODULE TestLen;
|
||||
|
||||
IMPORT Out;
|
||||
|
||||
PROCEDURE DoByteLength*;
|
||||
VAR s: ARRAY 16 OF CHAR; len, v: INTEGER;
|
||||
BEGIN
|
||||
s := "møøse";
|
||||
len := LEN(s$);
|
||||
v := SIZE(CHAR) * len;
|
||||
Out.String("s: "); Out.String(s); Out.Ln;
|
||||
Out.String("Length of characters in bytes: "); Out.Int(v, 0); Out.Ln
|
||||
END DoByteLength;
|
||||
|
||||
END TestLen.
|
||||
Loading…
Add table
Add a link
Reference in a new issue