home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / adhesive_1 / goodies / basicC / Example / UsefulBits (.txt) < prev   
Encoding:
RISC OS BBC BASIC V Source  |  1994-09-10  |  481 b   |  22 lines

  1.  UsefulBits
  2.  Author: George Taylor, george@tardis.ed.ac.uk
  3. _UsefulBitsInit
  4. C_malloc%=
  5. _CCall(168)
  6. C_free%=
  7. _CCall(167)
  8. C_printf%=
  9. _CCall(191)
  10. _Malloc(size%)
  11.  space%
  12.  basicC_CCall,C_malloc%,space%,size%
  13. =space%
  14. _Zmalloc(size%)
  15.  space%
  16.  basicC_CCall,C_malloc%,space%,size%
  17.  space%=0 
  18.  1,"Out of memory, FN_Zmalloc failed"
  19. =space%
  20. _Free(space%)
  21.  basicC_CCall,C_free%,a%,space%
  22.