Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unlink(3F) — Sun FORTRAN 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

unlink(2)

link(3F)

perror(3F)

UNLINK(3F)  —  FORTRAN LIBRARY ROUTINES

NAME

unlink − remove a file

SYNOPSIS

integer function unlink ( name )
character ∗(∗) name

DESCRIPTION

The function unlink removes the file specified by pathname name , If this was the last link to the file, the contents of the file are lost.  The returned value will be zero if successful; a system error code otherwise. 

EXAMPLE

This program renoves 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%

FILES

/usr/lang/SC0.0/libF77.a

SEE ALSO

unlink(2), link(3F), perror(3F)

BUGS

Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>. 

Sun Release 4.1  —  Last change: 13 November 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026