-/* $NetBSD: prtable.c,v 1.10 2013/10/19 17:23:08 christos Exp $ */
+/* $NetBSD: prtable.c,v 1.11 2021/05/02 12:50:43 rillig Exp $ */
/*-
* Copyright (c) 1993
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: prtable.c,v 1.10 2013/10/19 17:23:08 christos Exp $");
+__RCSID("$NetBSD: prtable.c,v 1.11 2021/05/02 12:50:43 rillig Exp $");
#endif /* not lint */
#include <ncurses.h>
* width - max line width if not zero
* prentry - address of the routine to call to print the string
* length - address of the routine to call to determine the length
- * of string to be printed
+ * of string to be printed
*
* prtable and length are called with the address of the base and
* an index
*/
void
-prtable(const char *const base[], int num, int d_cols, int width,
- void (*prentry)(const char *const [], int),
+prtable(const char *const base[], int num, int d_cols, int width,
+ void (*prentry)(const char *const [], int),
int (*length)(const char *const [], int))
{
int c, j;
}
static int
-get_maxlen(const char *const base[], int num,
+get_maxlen(const char *const base[], int num,
int (*length)(const char *const *, int))
{
int i, len, max;