www.delorie.com/djgpp/doc/libc-2.01/libc_442.html   search  
Go to the first, previous, next, last section, table of contents.


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.

Example

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


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997