home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib1
/
v_01_04
/
1n04044a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
218 b
|
14 lines
n := 0;
while c in ['0' .. '9'] do
begin
digit := ord(c) - ord('0');
if n < (MINLONGINT + digit) div base then
{ overflow action };
n := 10 * n - digit;
c := next;
end;
if not neg then
n := -n;