unlink(3f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨페이지이름
검색(S)

unlink

Name
     unlink - remove a file

Synopsis
     integer function unlink ( name )
     character *(*) name

Description
     The function unlink removes the file specified by  the  path
     name  name.  If  this is the last link to the file, the con-
     tents of the file are lost. The returned value  is  zero  if
     successful, a system error code otherwise.

Example
     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%

Files
     libfsu.a

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

Bugs
     Path names cannot be longer than MAXPATHLEN  as  defined  in
     <sys/param.h>.
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 1.0 CSS3