Chapter 13
The system unit

The system unit contains the standard supported functions of Free Pascal. It is the same for all platforms. Basically it is the same as the system unit provided with Borland or Turbo Pascal.

Functions are listed in alphabetical order. Arguments of functions or procedures that are optional are put between square brackets.

The pre-defined constants and variables are listed in the first section. The second section contains an overview of all functions, grouped by functionality, and the last section contains the supported functions and procedures.


 13.1 Types, Constants and Variables
   Types
   Constants
   Variables
 13.2 Function list by category
   File handling
   Memory management
   Mathematical routines
   String handling
   Operating System functions
   Miscellaneous functions
 13.3 Functions and Procedures
   Abs
   Addr
   Append
   Arctan
   Assert
   Assign
   Assigned
   BinStr
   Blockread
   Blockwrite
   Break
   Chdir
   Chr
   Close
   CompareByte
   CompareChar
   CompareDWord
   CompareWord
   Concat
   Continue
   Copy
   Cos
   CSeg
   Dec
   Delete
   Dispose
   DSeg
   Eof
   Eoln
   Erase
   Exclude
   Exit
   Exp
   Filepos
   Filesize
   FillByte
   Fillchar
   FillDWord
   Fillword
   Flush
   Frac
   Freemem
   Getdir
   Getmem
   GetMemoryManager
   Halt
   HexStr
   Hi
   High
   Inc
   Include
   IndexByte
   IndexChar
   IndexDWord
   IndexWord
   Insert
   IsMemoryManagerSet
   Int
   IOresult
   Length
   Ln
   Lo
   LongJmp
   Low
   Lowercase
   Mark
   Maxavail
   Memavail
   Mkdir
   Move
   MoveChar0
   New
   Odd
   OctStr
   Ofs
   Ord
   Paramcount
   Paramstr
   Pi
   Pos
   Power
   Pred
   Ptr
   Random
   Randomize
   Read
   Readln
   Real2Double
   Release
   Rename
   Reset
   Rewrite
   Rmdir
   Round
   Runerror
   Seek
   SeekEof
   SeekEoln
   Seg
   SetMemoryManager
   SetJmp
   SetLength
   SetString
   SetTextBuf
   Sin
   SizeOf
   Sptr
   Sqr
   Sqrt
   SSeg
   Str
   StringOfChar
   Succ
   Swap
   Trunc
   Truncate
   Upcase
   Val
   Write
   WriteLn