home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU2.DMS / in.adf / Neil / LibDocs < prev   
Encoding:
Text File  |  1994-04-04  |  856 b   |  32 lines

  1. New Blitz Commands
  2. ~~~~~~~~~~~~~~~~~~
  3. This library contains the following commands:
  4.  
  5.  
  6. MemoryBlock=AllocMem(ByteSize,Requirements)
  7.   (long)               (long)    (long)
  8.  
  9. This routine simply calles the Blitz AllocMem() routine so that any memory
  10. blocks allocated with it are freed when the program ends (if not already
  11. freed) or if the program aborts (during development of course :)
  12.  
  13.  
  14. FreeMem MemoryBlock,ByteSize
  15.            (long)    (long)
  16.  
  17. Deallocates memory obtained with AllocMem
  18.  
  19.  
  20. result=IsEven(Expression)
  21. (bool)        (byte,word,long)
  22.  
  23. Returns true if Expression is even.  Of use when requesting a value from a
  24. user that MUST be even.
  25.  
  26.  
  27. result=SearchString(StringPointer,StartAddress,BlockLength)
  28. (long)                (&string)    (long)        (long)
  29.  
  30. Finds a string in the given memory block and returns its address.  Returns
  31. False otherwise.
  32.