diff options
Diffstat (limited to 'tests/mkostemps-0.c')
-rw-r--r-- | tests/mkostemps-0.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/mkostemps-0.c b/tests/mkostemps-0.c new file mode 100644 index 0000000..62857b8 --- /dev/null +++ b/tests/mkostemps-0.c @@ -0,0 +1,20 @@ +#define CONFIG HAVE_MKOSTEMPS +#define FUNC mkostemps +#define SFUNC "mkostemps" +#define FUNC_STR "\"%s\", %i, %#x" +#define FUNC_IMP template, suffixlen, flags +#define ARG_CNT 3 +#define ARG_USE "<template> <suffixlen> <flags>" + +#define process_args() \ + s = argv[i++]; \ + char *template = s; \ + \ + s = argv[i++]; \ + int suffixlen = 0; \ + sscanf(s, "%i", &suffixlen); \ + \ + s = argv[i++]; \ + int flags = f_get_flags(s); + +#include "test-skel-0.c" |