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.

Portability

not ANSI, POSIX

Example

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


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