ec_spool_ctx_construct_filename

March 26, 2020 Contributors

Name

ec_spool_ctx_construct_filename — Create a file name for the specified message

Synopsis

#include "spool.h"

| int **ec_spool_ctx_construct_filename** ( | ctx, |   |
|   | id, |   |
|   | filename); |   |

ec_spool_ctx * <var class="pdparam">ctx</var>;
message_id * <var class="pdparam">id</var>;
char * <var class="pdparam">filename</var>;

Description

Create a file name for the specified message.

Parameters

ctx

The spool context.

id

The id of the message.

filename

The file name. This buffer must already be allocated by the user and must be at least MAXPATHLEN bytes.

Return Values

This function returns the length of the file name.

Threading

It is legal to call this function in any thread.

See Also

“ec_spool_ctx”