Avoid I/O buffering when using the checking malloc

This commit is contained in:
ceriel 1989-06-19 11:10:58 +00:00
parent e2b5163869
commit c48f281b39

View file

@ -287,6 +287,7 @@ check_work_empty(s) char *s; {
public int public int
Error(fmt, s, ml) char *fmt, *s; mallink *ml; { Error(fmt, s, ml) char *fmt, *s; mallink *ml; {
setbuf(stdout, (char *) 0);
printf("%s: ", s); printf("%s: ", s);
printf(fmt, (long)ml); printf(fmt, (long)ml);
printf("\n"); printf("\n");