home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
LIB
/
GSTOBJ.ZIP
/
GstObjects
/
squash
/
Example
/
UsefulBits
(
.txt
)
< prev
Wrap
RISC OS BBC BASIC V Source
|
1994-09-11
|
684b
|
33 lines
UsefulBits
Author: George Taylor, george@tardis.ed.ac.uk
_UsefulBitsInit
C_malloc%=
_CCall(168)
C_free%=
_CCall(167)
C_printf%=
_CCall(191)
_Malloc(size%)
space%
basicC_CCall,C_malloc%,space%,size%
=space%
_Zmalloc(size%)
space%
basicC_CCall,C_malloc%,space%,size%
space%=0
1,"Out of memory, FN_Zmalloc failed"
=space%
_Free(space%)
basicC_CCall,C_free%,a%,space%
_CheckError(err%)
err%<>0
_Error(
_String(err%+4))
_Error(err$)
1,err$
_String(b%)
$ s$=""
?b%>31
s$+=
b%+=1