Last change
on this file was
13067,
checked in by rme, 11 years ago
|
Update copyright notices.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
959 bytes
|
Line | |
---|
1 | /* |
---|
2 | Copyright (C) 2009 Clozure Associates |
---|
3 | Copyright (C) 1994-2001 Digitool, Inc |
---|
4 | This file is part of Clozure CL. |
---|
5 | |
---|
6 | Clozure CL is licensed under the terms of the Lisp Lesser GNU Public |
---|
7 | License , known as the LLGPL and distributed with Clozure CL as the |
---|
8 | file "LICENSE". The LLGPL consists of a preamble and the LGPL, |
---|
9 | which is distributed with Clozure CL as the file "LGPL". Where these |
---|
10 | conflict, the preamble takes precedence. |
---|
11 | |
---|
12 | Clozure CL is referenced in the preamble as the "LIBRARY." |
---|
13 | |
---|
14 | The LLGPL is also available online at |
---|
15 | http://opensource.franz.com/preamble.html |
---|
16 | */ |
---|
17 | |
---|
18 | /* |
---|
19 | MCL-PPC dcmd utilities. |
---|
20 | */ |
---|
21 | |
---|
22 | #include "lispdcmd.h" |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | void |
---|
28 | display_buffer(char *buf) |
---|
29 | { |
---|
30 | fprintf(dbgout, "%s\n", buf); |
---|
31 | } |
---|
32 | |
---|
33 | int |
---|
34 | Dprintf(const char *format, ...) |
---|
35 | { |
---|
36 | char buf[512]; |
---|
37 | va_list args; |
---|
38 | int res; |
---|
39 | |
---|
40 | va_start(args, format); |
---|
41 | res = vsnprintf(buf, sizeof(buf), format, args); |
---|
42 | if (res >= 0) { |
---|
43 | display_buffer(buf); |
---|
44 | } |
---|
45 | return res; |
---|
46 | } |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.