home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 9
/
CD_ASCQ_09_1193.iso
/
maj
/
4437
/
int
/
spx_fnc.int
< prev
next >
Wrap
Text File
|
1993-09-14
|
2KB
|
50 lines
Unit SPX_FNC;
{$X+,O+ }
{ SPX Library Version 2.0 Copyright 1993 Scott D. Ramsay }
Interface
Uses spx_obj;
type
quitProc = procedure;
function sgn(h:integer):integer;
function strint(s:string):longint;
function intstr(l:longint):string;
function ups(s:string):string;
function st(h:longint):string;
function compare(s1,s2:string):boolean;
function dtcmp(var s1,s2;size:word):boolean;
function cmp(var s1,s2;size:word):boolean;
function lz(i,w:longint):string;
function vl(h:string):longint;
function spaces(h:integer):string;
function repstr(h:integer;ch:char):string;
function ifix(var a:integer;min,max:integer):boolean;
function rfix(var a:real;min,max:real):boolean;
function anything(s:string):boolean;
function exist(f:string):boolean;
function errmsg(n:integer):string;
function TPerror(errorcode:integer) : string;
procedure funpad(var s:string);
procedure unpad(var s:string);
procedure munpad(var s:string;b:byte);
function fpad(s:string;h:integer):string;
procedure pad(var s:string;h:integer);
procedure fix(var s:string;h:string);
procedure fixh(var s:string);
function range(x,y,x1,y1,x2,y2:integer) : boolean;
function rrange(x,y,x1,y1,x2,y2:real) : boolean;
function between(x,x1,x2:longint):boolean;
function fspaces(s:string;skip:byte):string;
function GetPtr(p:pointer;offset:longint):pointer;
function sar(value:integer;shift:byte):integer;
function sal(value:integer;shift:byte):integer;
function ptr2hex(p:pointer):string;
function word2hex(w:word):string;
function byte2hex(b:byte):string;
procedure atexit(proc:QuitProc);