Access to the channel/devices is achieved by means of general purpose I/O routines Theses are standard functions described in stdio.h header file namely getc and putc. Getc and putc are character I/O routines, they read and write respectively to a file pointer . The syntax is
char getc(file); Returns a single character from the address *file
putc(character,file); Writes a character to the address *file