SMAKE Examples


Example 1:

 

  

SMAKE

PTR,4096

 

Attempts to create a DIM variable attaching it to the previously defined DIM Pointer PTR. PTR is created with a Physical Length (PL) of 4096 bytes, a Form Pointer of zero and a Length Pointer of zero. If insufficient memory exists to create PTR, the ZERO Condition Flag is set.

 

Example 2:

 

  

SMAKE

PTR,SIZE

 

Attempts to create a DIM variable attaching it to the previously defined DIM Pointer PTR. PTR is created with a Physical Length of the size designated in SIZE (that must be a valid FORM or INTEGER), a Form Pointer of zero and a Length Pointer of zero. If SIZE equals zero or insufficient memory exists to create PTR, the ZERO Condition Flag is set.

 



PL/B Language Reference SKIP Examples SNDFILE Example