sk_getManagedFile()

Description

This function allows you to access the internal file management capabilities. It returns a pointer to a FILE structure of an opened file that is ready for writing. You can write any data to this file.

The benefits of using managed files are:

the location of the file is determined by SK_LOG_DIR.

the file is rotated based on the same criteria as other SwitchKit logs, for example hourly, daily and so on.

This function is also available as skts_getManagedFile().

Syntax

FILE *sk_getManagedFile(const char *aFileName);

Threadsafe Syntax

FILE* skts_getManagedFile(const char *aFileName );

Parameters

The function parameters are shown in the table below.

Argument

Description

aFileName

Pointer to specified file.

Return Values

Possible return values for this function are:

SK_LOST_LLC

This return value indicates that your application lost contact with the LLC.