#include "spice.h"
#include "plotdefs.h"
Go to the source code of this file.
int ft_makehardcopy |
( |
GRAPH * |
graph, |
|
|
char * |
fname, |
|
|
char * |
devtype, |
|
|
char * |
device, |
|
|
char * |
mesg |
|
) |
| |
Definition at line 25 of file hcopy.c.
32 char *sif =
"%s saved in file \"%s\"";
35 sprintf(buf,
"Printing %s on the %s printer", fname,
device);
38 #ifdef SYSTEM_PLOT5LPR 39 if (!strcmp(devtype,
"plot5")) {
40 (void) sprintf(buf, SYSTEM_PLOT5LPR,
device, fname);
47 if (!strcmp(devtype,
"postscript")) {
48 (void) sprintf(buf, SYSTEM_PSLPR,
device, fname);
53 if (!strcmp(devtype,
"laser")) {
54 (void) sprintf(buf,
"PCL not supported yet");
58 if (!strcmp(devtype,
"text")) {
59 (void) sprintf(buf,
"lpr -h -P%s %s",
device, fname);
66 if (!strcmp(devtype,
"plot5")) {
67 sprintf(buf, sif,
"Unix \"plot(1)\"", fname);
69 else if (!strcmp(devtype,
"postscript")) {
70 sprintf(buf, sif,
"Postscript image", fname);
72 else if (!strcmp(devtype,
"laser")) {
73 sprintf(buf, sif,
"PCL image", fname);
75 else if (!strcmp(devtype,
"text")) {
76 sprintf(buf, sif,
"Text", fname);
static char buf[MAXPROMPT]
static void message(char *instr, char *outstr)
static void message |
( |
char * |
instr, |
|
|
char * |
outstr |
|
) |
| |
|
static |