#include <ctype.h> /* for isdigit() */
#include <unistd.h>
#include <signal.h>
+
+#include "c.h"
#include "kill.h"
#include "nls.h"
-#define SIZE(a) (sizeof(a)/sizeof(a[0]))
-
struct signv {
char *name;
int val;
if (! strncasecmp (sig, "sig", 3))
sig += 3;
- for (n = 0; n < SIZE(sys_signame); n++) {
+ for (n = 0; n < ARRAY_SIZE(sys_signame); n++) {
if (! strcasecmp (sys_signame[n].name, sig))
return sys_signame[n].val;
}
{
int n;
- for (n = 0; n < SIZE(sys_signame); n++) {
+ for (n = 0; n < ARRAY_SIZE(sys_signame); n++) {
if (sys_signame[n].val == sig) {
printf ("%s\n", sys_signame[n].name);
return;
int n, lth;
int lpos = 0;
- for (n = 0; n < SIZE(sys_signame); n++) {
+ for (n = 0; n < ARRAY_SIZE(sys_signame); n++) {
lth = 1+strlen(sys_signame[n].name);
if (lpos+lth > 72) {
fputc ('\n', fp);