Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

unlink (3f)


Syntax

  integer*4 unlink, ierrno
  character*len name
  external unlink
  ierrno = unlink ( name )

Description

  The unlink function causes the directory entry specified by pathname name
  to be removed.  If this is the last link to the file, the contents of the
  file are lost.

Restrictions

  Pathnames cannot be longer than MAXPATHLEN (as defined in sys/param.h ).

Return Values

  If the function is successful, a zero is returned; otherwise, an error code
  is returned.

See Also

  link(3f), perror(3f)