| unlink | Function (tigcc.a)

stdio.h

short unlink (const char *filename);

Deletes a file.

unlink deletes the file specified by filename (it is a normal C string, which should be in lowercase). If your file is open, be sure to close it before removing it. The string pointed to by filename may include a folder name too. On successful completion, unlink returns 0. On error, it returns EOF.
Note: Function SymDel from vat.h header file is very similar like unlink (or remove), except the parameter and returned result are somewhat different. As unlink is not a TIOS entry and SymDel is, the usage of SymDel is recommended instead of unlink (although SymDel is not ANSI standard).

Uses: SymDel
Used by: remove