cvs.delorie.com/djgpp/doc/libc/libc_531.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

link

Syntax

 
#include <unistd.h>

int link(const char *exists, const char *new);

Description

Because of limitations of MS-DOS, this function doesn't really link two files together. However, it simulates a real link by copying the file at exists to new.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
link("foo.c", "foo.bak");


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004