unlink - remove a file
integer function unlink ( name ) character *(*) name
The function unlink removes the file specified by the path name name. If this is the last link to the file, the contents of the file are lost. The returned value is zero if successful, a system error code otherwise.
The following program removes the file stuff:
demo% ls
a.f other stuff
demo% cat a.f
external unlink
call unlink( 'stuff' )
stop
end
demo% f77 a.f
a.f:
MAIN:
demo% ls
a.f a.out* other stuff
demo% a.out
demo% ls
a.f a.out* other
demo%
libfsu.a
unlink(2), link(3F), perror(3F)
Path names cannot be longer than MAXPATHLEN as defined in <sys/param.h>.