* Copyright (c) 1992 Regents of the University of California.
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contributed to Berkeley.
* %sccs.include.redist.c%
static char *program_name
;
return (cp
!= 0) ? cp
+ 1 : s
;
program_name
= stripdir(cp
);
fprintf(stderr
, "usage: %s [ -c core ] executable pid\n",
(void)fprintf(stderr
, "%s: ", stripdir(program_name
));
(void)vfprintf(stderr
, cp
, ap
);
(void)fputc('\n', stderr
);
(void)fprintf(stderr
, "%s: warning: ", stripdir(program_name
));
(void)vfprintf(stderr
, cp
, ap
);
(void)fputc('\n', stderr
);