[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'oldlinux' (#rtl) |
Convert octal to decimal value
Source position: oldlinux.pp line 1579
function Octal( |
l: LongInt |
):LongInt; |
Octal will convert a number specified as an octal number to it's decimal value.
This is useful for the Chmod call, where permissions are specified as octal numbers.
No checking is performed whether the given number is a correct Octal number. e.g. specifying 998 is possible; the result will be wrong in that case.
|
Change file permission bits |
Program Example68; { Program to demonstrate the Octal function. } Uses oldlinux; begin Writeln('Mode 777 : ', Octal(777)); Writeln('Mode 644 : ', Octal(644)); Writeln('Mode 755 : ', Octal(755)); end.
No notes exist for this page yet.