Introduction
Introduction Statistics Contact Development Disclaimer Help
link.c - sbase - suckless unix tools
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
link.c (345B)
---
1 /* See LICENSE file for copyright and license details. */
2 #include <unistd.h>
3
4 #include "util.h"
5
6 static void
7 usage(void)
8 {
9 eprintf("usage: %s target name\n", argv0);
10 }
11
12 int
13 main(int argc, char *argv[])
14 {
15 ARGBEGIN {
16 default:
17 usage();
18 } ARGEND
19
20 if (argc != 2)
21 usage();
22
23 if (link(argv[0], argv[1]) < 0)
24 eprintf("link:");
25
26 return 0;
27 }
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.