Function S_ISCHR (m:integer) : boolean;
S_ISCHR checks the file mode m to see whether the file is a character device file. If so it returns True.
FStat, S_ISLNK, S_ISREG, S_ISDIR, S_ISBLK, S_ISFIFO, S_ISSOCK
For an example, see ISLNK.