Commit 491280db authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check HAVE_STRING_H.

Rename _printf to UCB_printf.
parent d76fc56e
......@@ -10,11 +10,13 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include "isc.h"
extern int _printf( int (*fctn)(int chr), const char *format, ...);
extern int UCB_printf( int (*fctn)(int chr), const char *format, ...);
/*extern void *memcpy(void *, const void *, int);*/
int
......@@ -90,7 +92,7 @@ isc_vprintf(IscSession * scb,
{
send_scb = scb;
return _printf(send_putc, format, AP);
return UCB_printf(send_putc, format, AP);
}
......@@ -107,7 +109,7 @@ isc_printf(IscSession * scb,
send_scb = scb;
cnt = _printf(send_putc, format, AP);
cnt = UCB_printf(send_putc, format, AP);
va_end(AP);
......
......@@ -51,8 +51,9 @@ static char sccsid[] = "@(#)doprnt.c 5.39 (Berkeley) 6/28/90";
#include <varargs.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include <math.h>
......@@ -99,7 +100,7 @@ static char *exponent(char *, int, u_char);
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */
int _printf(pr_chr, fmt0, argp)
int UCB_printf(pr_chr, fmt0, argp)
int (*pr_chr)();
u_char *fmt0;
va_list argp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment