1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 23:43:33 +00:00
sbase/link.c

18 lines
298 B
C
Raw Normal View History

2014-10-17 14:32:08 +00:00
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <unistd.h>
2014-10-17 14:32:08 +00:00
#include "util.h"
int
main(int argc, char *argv[])
{
argv0 = argv[0];
if (argc != 3)
eprintf("usage: %s target name\n", argv0);
2014-10-17 14:38:40 +00:00
if (link(argv[1], argv[2]) < 0)
2014-10-17 14:32:08 +00:00
eprintf("link:");
return 0;
}