]>
git.ipfire.org Git - thirdparty/cups.git/blob - backend/betest.c
ae73a1f1c9380ec550cb6b4c6697c3f78c6f9724
2 * "$Id: betest.c 6649 2007-07-11 21:46:42Z mike $"
4 * Backend test program for the Common UNIX Printing System (CUPS).
6 * Copyright 2007 by Apple Inc.
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged, see the license at "http://www.cups.org/".
15 * This file is subject to the Apple OS-Developed Software exception.
19 * main() - Run the named backend.
23 * Include necessary headers.
28 #include <cups/string.h>
33 * 'main()' - Run the named backend.
37 * betest device-uri job-id user title copies options [file]
40 int /* O - Exit status */
41 main(int argc
, /* I - Number of command-line arguments (7 or 8) */
42 char *argv
[]) /* I - Command-line arguments */
44 char backend
[255]; /* Method in URI */
47 if (argc
< 7 || argc
> 8)
49 fputs("Usage: betest device-uri job-id user title copies options [file]\n",
55 * Extract the method from the device-uri - that's the program we want to
59 if (sscanf(argv
[1], "%254[^:]", backend
) != 1)
61 fputs("betest: Bad device-uri - no colon!\n", stderr
);
69 execl(backend
, argv
[1], argv
[2], argv
[3], argv
[4], argv
[5], argv
[6], argv
[7],
77 * End of "$Id: betest.c 6649 2007-07-11 21:46:42Z mike $".