home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 2
/
AUCD2.iso
/
internet
/
acornet.spk
/
!Acornet
/
Utils
/
!NetConfig
/
Docs
/
Core
next >
Wrap
Text File
|
1995-06-11
|
2KB
|
34 lines
Core routines
=============
The core module should be the first loaded and provides a number of
fundamental facilities.
Summary:
PROClibrary(lib$) Ensure a library loaded
FNlibp(lib$) Test if library already loaded
FNdefint(RETURN var%,val%) Set var% to val% if unset or zero, return var%
FNdefstr(RETURN var$,val$) Set var$ to val$ if unset or empty, return var$
PROCtrace_on Turn on tracing
PROCtrace_off Turn off tracing
PROCtrace(text$) Append text$ to trace file, if tracing is on
tracing TRUE if tracing is on
FNtype_create(name$,size%) Create a new data type with basic size
PROCtype_check(blk%,type%) Error if memory block blk% is not of type type%
FNmalloc(typesize%) Allocate memory of given size (and maybe type)
PROCfree(blk%) Free block of memory
PROCalloc_dump Print memory allocation details to stdout
PROCexit Quit program, running any exit hooks
PROCatexit(fn$,arg%) Register function fn$ to be called with argument
arg% at program exit
PROCnoatexit(fn$,arg%) Remove previously registered exit function
FNstrget(str%) Convert malloc'ed string to BASIC string
PROCstrset(str%,str$) Copy BASIC string into (malloc'ed) space
PROCstrlen(str%) Get length of zero-terminated string
FNstrdup(str$) Make malloc'ed copy of BASIC string
FNstrtok(RETURN list$,delim$) Remove and return entry from list$ delimited
by characer delim$
FNstrcount(str$,ch$) Return number of ch$'s in str$
FNleaf(str$) Return last pathname element from str$
FNgetenv(var$) Return value of system variable var$