gencheck.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#define USAGE "usage: gencheck <filename>\n"
static int
const char chars[] = "abcdefghijklmnopqrstuvwxyz0123456789";
ssize_t i;
for (i = 0;
i < count;
{
/* Just ignore the trailing newline */
if (buf[i] == '\n')
continue;
return 0;
}
return 1;
}
int
{
int ret;
int fd;
char buf[1024];
ret = EXIT_FAILURE;
fd = -1;
length = 0;
if (argc != 2) {
goto out;
}
if (fd == -1)
goto out;
start = 0;
if (count < 0)
goto out;
goto out;
}
ret = EXIT_SUCCESS;
out:
if (fd != -1)
return (ret);
}