mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Update ecllib from statoil master repo commit 0188b08081eb1ac4ade89ac224b8128b4c9b0481
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define NCHAR 63
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char linkname[NCHAR + 1] = { 0 };
|
||||
ssize_t r;
|
||||
|
||||
r = (argc < 2) ? -1
|
||||
: readlinkat(1, argv[1], linkname, NCHAR);
|
||||
|
||||
return (r > 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
Reference in New Issue
Block a user