File:
[DVB] /
dietlibc /
examples /
sln.c
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Tue Jan 9 17:57:39 2001 UTC (23 years, 4 months ago) by
cvs
Branches:
MAIN
CVS tags:
finnland_test_200301,
branch_rc14_fieldtest_finnland,
branch_rc13_fieldtest_finnland,
branch_rc12_fieldtest_finnland,
branch_rc10_fieldtest_finnland,
RELEASE_finnland_200301_1,
RC12_FIELDTEST_FINNLAND,
RC10_FIELDTEST_FINNLAND,
HEAD
files where missing (?)
#include <unistd.h>
int strlen(const char *s) {
int len;
for (len=0; *s; s++,len++) ;
return len;
}
void die(char *s) {
write(2,s,strlen(s));
exit(111);
}
main(int argc,char *argv[]) {
if (argc<3)
die("usage: sln dest src\n");
if (symlink(argv[2],argv[1]) == -1)
die("symlink failed\n");
return 0;
}
LinuxTV legacy CVS <linuxtv.org/cvs>