WYRDTEK Home Features Reference Downloads About


Reference/es_sdm_savefile

Syntax

int es_sdm_savefile( struct es_sdm *mgr, const char *filen, unsigned bufsize );

Arguments

struct es_sdm *mgr String dictionary manager to be saved.
const char *filen File path name prefix.
unsigned bufsize Buffer size used in serializing string dictionary manager.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_FAILTOSAVE Failed to save. Check errno for any system errors.

Description

es_sdm_savefile is a wrapper function over es_sdm_save() for serializing a string dictionary manager to a file.

bufsize is the size of the internal buffer used by es_sdm_savefile in serializing the manager.

[Back To Reference] [Back To Reference/es_sdm]