repo.or.cz
/
rofl0r-hardcore-utils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
manpp: add support for .EX and .EE code blocks
[rofl0r-hardcore-utils.git]
/
unlink.c
blob
4bde8acac83e63d20b74d68708fa290fc7c36f6f
1
#include <unistd.h>
2
#include <stdio.h>
3
static int
usage
(
void
) {
4
dprintf
(
2
,
"usage: unlink file
\n
"
);
5
return
1
;
6
}
7
8
int
main
(
int
argc
,
char
**
argv
) {
9
if
(
argc
!=
2
)
return
usage
();
10
if
(
unlink
(
argv
[
1
]) == -
1
) {
11
perror
(
"unlink"
);
12
return
1
;
13
}
14
return
0
;
15
}