ApInitialize()

Initialize an application given a set of options

Synopsis:

#include <Ap.h>

int ApInitialize( int argc, 
                  char *argv[], 
                  ApContext_t *context );



Arguments:

argc
The number of entries in the argv array.
argv[]
An array of pointers to strings that contain the arguments to the program.
context
A pointer to a context structure.

Library:

Ap

Description:

This function is used to initialize an application. Usually argc and argv are passed directly from the main as they come. The list of actually recognized options is specified in the PhAB under Project-->Project Properties-->Generate Options.

Returns:

0 on success.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApCreateModule(), ApCreateWidget()