[Previous] [Contents] [Next]

my_init()

initialize the _doc_ctrl structure

Synopsis:

int my_init( int argc, char **argv, 
             struct _doc_ctrl *c )

Description:

This function is called at the start of the program and allows you to initialize the program without changing prlib_main() or my_main(). It initializes members of the _doc_ctrl structure.

The arguments are:

argc
The number of elements in the argv array.
argv
An array of command-line arguments that weren't already parsed by my_main().

The -o option is reserved for any printer-control command-line options (e.g. -og for gamma control, -op for print type).

If your print filter needs any options, specify them as -o options. QSSL reserves the right to use the options other than -o in future releases.

c
A pointer to the _doc_ctrl structure.

The default version of this function saves a pointer to the _doc_ctrl structure pointed to by c. You shouldn't have to replace the default version of this function.

Returns:

0
Success.
Any other value
An error occurred.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

[Previous] [Contents] [Next]