home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
221.lha
/
drinc
/
util.g
< prev
Wrap
Text File
|
1996-02-15
|
2KB
|
80 lines
type
/*resultfromthestringcomparisonroutine:*/
COMPARISON=enum{
EQUAL,
LESS,
GREATER
};
/*errorcodesreturnedby'IOerror':*/
ushort
CH_OK=0,/*noerror*/
CH_EOF=1,/*readpastend-of-fileindicator*/
CH_CLOSED=2,/*useafterclose*/
CH_NONEXIS=3,/*filedoesn'texist*/
CH_DISKFULL=4,/*diskisfull;writefailed*/
CH_BADSEEK=5,/*badseekcall*/
CH_MISSING=6,/*nodataonline*/
CH_BADCHAR=7,/*badcharacterforinputconversion*/
CH_OVERFLOW=8,/*overflowonnumericconversion*/
CH_UNDERFLOW=9,/*underflowonfloatingpointinput*/
CH_BADREAD=10;/*thesystemreadcallfailed!*/
/*resultfromLineReadwhenwegetendoffile:*/
ulongLINE_EOF=0xffffffff;
extern
CharsLen(*charcharsPtr)ulong,
CharsEqual(*charcharsPtr1,charsPtr2)bool,
CharsCopy(*chardest,source)void,
CharsCmp(*charcharsPtr1,charsPtr2)COMPARISON,
CharsConcat(*chardest,source)void,
CharsCopyN(*chardest,source;ulongn)void,
CharsIndex(*charsubject,object)long,
exit(longstatus)void,
ConvTime(ulongseconds;*charbuffer)void,
GetCurrentTime()ulong,
GetPar()*char,
RescanPars()void,
FileCreate(*charfileName)bool,
FileDestroy(*charfileName)boid,
FileRename(*charoldName,newName)bool,
RawRead(channelinputbinarychan;arbptrbuffer;ulongcount)ulong,
RawWrite(channeloutputbinarychan;arbptrbuffer;ulongcount)ulong,
LineRead(channelinputtextchan;*charbuffer;ulongcount)ulong,
LineWrite(channeloutputtextchan;*charbuffer;ulongcount)ulong,
RandomOut(channeloutputbinarychan)void,
ReOpen(channelinputbinarych1;channeloutputbinarych2)void,
SeekIn(channelinputbinarychan;ulongposition)bool,
SeekOut(channeloutputbinarychan;ulongposition)bool,
TextAppend(channeloutputtextchan)bool,
LineFlush()void,
GetIn(channelinputbinarychan)ulong,
GetOut(channeloutputbinarychan)ulong,
GetInMax(channelinputbinarychan)ulong,
GetOutMax(channeloutputbinarychan)ulong,
FlushOut(channeloutputbinarychan)void,
Malloc(ulonglength)arbptr,
Mfree(arbptrregion;ulonglength)void,
MerrorSet(boolnewFlag)void,
MerrorGet()bool,
BlockCopy(arbptrdest,source;ulongcount)void,
BlockFill(arbptrdest;ulongcount;bytevalu)void,
BlockCopyB(arbptrdest,source;ulongcount)void;