home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 2 / AUCD2.iso / internet / acornet.spk / !Acornet / Utils / !NetConfig / Docs / Core next >
Text File  |  1995-06-11  |  2KB  |  34 lines

  1. Core routines
  2. =============
  3.  
  4. The core module should be the first loaded and provides a number of
  5. fundamental facilities.
  6.  
  7. Summary:
  8.   PROClibrary(lib$)        Ensure a library loaded
  9.   FNlibp(lib$)            Test if library already loaded
  10.   FNdefint(RETURN var%,val%)    Set var% to val% if unset or zero, return var%
  11.   FNdefstr(RETURN var$,val$)    Set var$ to val$ if unset or empty, return var$
  12.   PROCtrace_on            Turn on tracing
  13.   PROCtrace_off            Turn off tracing
  14.   PROCtrace(text$)        Append text$ to trace file, if tracing is on
  15.   tracing            TRUE if tracing is on
  16.   FNtype_create(name$,size%)    Create a new data type with basic size
  17.   PROCtype_check(blk%,type%)    Error if memory block blk% is not of type type%
  18.   FNmalloc(typesize%)        Allocate memory of given size (and maybe type)
  19.   PROCfree(blk%)        Free block of memory
  20.   PROCalloc_dump        Print memory allocation details to stdout
  21.   PROCexit            Quit program, running any exit hooks
  22.   PROCatexit(fn$,arg%)        Register function fn$ to be called with argument
  23.                  arg% at program exit
  24.   PROCnoatexit(fn$,arg%)    Remove previously registered exit function
  25.   FNstrget(str%)        Convert malloc'ed string to BASIC string
  26.   PROCstrset(str%,str$)        Copy BASIC string into (malloc'ed) space
  27.   PROCstrlen(str%)        Get length of zero-terminated string
  28.   FNstrdup(str$)        Make malloc'ed copy of BASIC string
  29.   FNstrtok(RETURN list$,delim$)    Remove and return entry from list$ delimited
  30.                  by characer delim$
  31.   FNstrcount(str$,ch$)        Return number of ch$'s in str$
  32.   FNleaf(str$)            Return last pathname element from str$
  33.   FNgetenv(var$)        Return value of system variable var$
  34.