This file is an early stage of writing and should not be regarded as a definitive guide to the functions in the C library, nor should what is said about each function be taken as the truth - always check the library source code!

extern FILE *fopen(char *name, char *access); Open a file on the Z88, the file is loaded from the current directory however you can specify the entire path. The access mode may be either "r","w","a" for read, write and append.
extern int fclose(FILE *fp); Close the file specified by the file handle fp (supplied by fopen)
extern fgets(char *buffer, int count, FILE *fp); Read from file fp a maximum of count bytes and place them in buffer. This function will stop reading when a \n or EOF is found. fgets returns the number of bytes read.
extern fputc(unsigned char c, FILE *fp); Put character c to file fp
extern fgetc(FILE *fp); Read a character from file fp
extern fputs(char *buffer, FILE *fp); Write the string contained in buffer to file fp
extern feof(FILE *fp); Test for EOF on file fp
extern putc(char c) putc is a macro which puts the charcter c to stdout. If you redirect stdout, then it could go to a file!
extern printf(char *format,...);
extern fprintf(FILE *fp, char *format,...);
A simple cut down printf that handles ints and chars and strings. (f)printf knows nothing about floats, longs or far pointers. Even though cut down, using this function will add 2k to your executable.
extern int remove(char *filename); Delete the file with the name filename
extern int rename(char *src, char *dest); Rename the file src giving it the newname dest
extern char getk(); Scan keyboard for a keypress, if no key is pressed it will return NULL
extern char getkey(); Wait for keypress
extern putchar(char); Put a character to the screen, similar to putc except that it always puts the character to the screen, even if stdout is redirected.
extern putn(int); Print the integer on the screen
extern puts(char *); Print the string to the screen. Unlike ANSI this does not append a \n to the end of the string
extern settxy(int x, int y); Set the current screen coordinates to (x,y)