|
|
1.1 root 1: # include <useful.h>
2: # include <sccs.h>
3:
4: SCCSID(@(#)lprintf.c 7.1 2/5/81)
5:
6: /*
7: ** LPRINTF -- labelled printf
8: **
9: ** Just like printf, except outputs the process name first.
10: **
11: ** Parameters:
12: ** fmt -- the format.
13: ** p1 - p6 -- the parameters.
14: **
15: ** Returns:
16: ** none
17: **
18: ** Side Effects:
19: ** none
20: **
21: ** Trace Flags:
22: ** none
23: */
24:
25: lprintf(fmt, p1, p2, p3, p4, p5, p6)
26: char *fmt;
27: {
28: extern char *Proc_name;
29:
30: if (Proc_name != NULL)
31: printf("%s: ", Proc_name);
32: printf(fmt, p1, p2, p3, p4, p5, p6);
33: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.