diff options
Diffstat (limited to 'tests/truncate64-0.c')
-rw-r--r-- | tests/truncate64-0.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/truncate64-0.c b/tests/truncate64-0.c new file mode 100644 index 0000000..f22c525 --- /dev/null +++ b/tests/truncate64-0.c @@ -0,0 +1,16 @@ +#define FUNC truncate64 +#define SFUNC "truncate64" +#define FUNC_STR "\"%s\", %i" +#define FUNC_IMP path, length +#define ARG_CNT 2 +#define ARG_USE "<oldpath> <newpath>" + +#define process_args() \ + s = argv[i++]; \ + char *path = s; \ + \ + s = argv[i++]; \ + off64_t length; \ + sscanf(s, "%i", &length); + +#include "test-skel-0.c" |