Rivoreo Source Code Repositories
src.rivoreo.one
/
toolbox
/
9911fc8197f20e60b26e68c57b4d080e7db07e82
/
.
/
exists_u.c
blob: e874501b50d7219c611134bcde926089e9c933aa [
file
] [
log
] [
blame
] [
raw
]
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<unistd.h>
int
exists_main
(
int
argc
,
char
*
argv
[])
{
struct
stat s
;
if
(
argc
<
2
)
return
1
;
if
(
stat
(
argv
[
1
],
&
s
)
<
0
)
{
return
1
;
}
else
{
return
0
;
}
}