1 /* $NetBSD: percent_m.c,v 1.3 1998/05/09 17:22:09 kleink Exp $ */
4 * Replace %m by system error message.
6 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
12 static char sccsid
[] = "@(#) percent_m.c 1.1 94/12/28 17:42:37";
14 __RCSID("$NetBSD: percent_m.c,v 1.3 1998/05/09 17:22:09 kleink Exp $");
22 #ifndef SYS_ERRLIST_DEFINED
23 extern char *sys_errlist
[];
28 #include "percent_m.h"
30 char *percent_m(obuf
, ibuf
)
35 const char *cp
= ibuf
;
37 while ((*bp
= *cp
) != '\0')
38 if (*cp
== '%' && cp
[1] == 'm') {
39 strcpy(bp
, strerror(errno
));