};
static void
-usage (status, reason)
- int status;
- char *reason;
+usage (int status, char *reason)
{
if (reason != NULL)
fprintf (stderr, "%s: %s\n", program_name, reason);
/* Return nonzero if the string STR is composed entirely of decimal digits. */
static int
-isdigits (str)
- char *str;
+isdigits (char *str)
{
do
{
Return 0 if STR is valid, -1 if not. */
static int
-convint (str, val)
- char *str;
- int *val;
+convint (char *str, int *val)
{
int multiplier = 1;
int arglen = strlen (str);
into the string `outfile' at the position pointed to by `outfile_mid'. */
static void
-next_file_name ()
+next_file_name (void)
{
int x;
char *ne;
Otherwise add to the same output file already in use. */
static void
-cwrite (new_file_flag, bp, bytes)
- int new_file_flag;
- char *bp;
- int bytes;
+cwrite (int new_file_flag, char *bp, int bytes)
{
if (new_file_flag)
{
If this is less than NCHARS, do not call `stdread' again. */
static int
-stdread (buf, nchars)
- char *buf;
- int nchars;
+stdread (char *buf, int nchars)
{
int n_read;
int to_be_read = nchars;
Use buffer BUF, whose size is BUFSIZE. */
static void
-bytes_split (nchars, buf, bufsize)
- int nchars;
- char *buf;
- int bufsize;
+bytes_split (int nchars, char *buf, int bufsize)
{
int n_read;
int new_file_flag = 1;
Use buffer BUF, whose size is BUFSIZE. */
static void
-lines_split (nlines, buf, bufsize)
- int nlines;
- char *buf;
- int bufsize;
+lines_split (int nlines, char *buf, int bufsize)
{
int n_read;
char *bp, *bp_out, *eob;
where lines longer than NCHARS bytes occur. */
static void
-line_bytes_split (nchars)
- int nchars;
+line_bytes_split (int nchars)
{
int n_read;
char *bp;
}
void
-main (argc, argv)
- int argc;
- char *argv[];
+main (int argc, char **argv)
{
struct stat stat_buf;
int num; /* numeric argument from command line */