MAINSAIL Language Manual, Section 32.28

previous   next   top   contents   index   framed top   this page unframed


32.28. cLoad

Figure 32–28. cLoad
$BUILTIN
INTEGER
PROCEDURE   cLoad       (CHARADR c;
                         
OPTIONAL INTEGER dspl);

cLoad loads a character from a CHARADR. Another form of cLoad, which loads a CHARADR from an ADDRESS, is described in Section 40.16.

cLoad loads a character from the location given by displace(c,dspl), where dspl is a displacement in characters.

The effect is undefined if c is Zero or if displace(c,dspl) is undefined. See Example 32–29.

Example 32–29. Use of cLoad
INTEGER i;
ADDRESS a;
CHARADR c;

c := cLoad(a); # loads a CHARADR from location given by a
i := cLoad(c); # loads a character from character location
               # 
given by c


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 32.28