DLM File

File Write

dlm_FileWrite()

Writes a single DLM event to the file.

Syntax
#include "dlmfile.h"

DlmResult dlm_FileWrite
    (
        DlmFileId  id,
        DlmEvent   event
    );
id id of file to write to
eventevent to write
Description

dlm_FileWrite() writes a single DLM event to the file.

Return Values

If successful, dlm_FileWrite() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dlm_FileRead()
dlm_FileReadEvents()
dlm_FileReleaseEvent()

Example
if ((result = dlm_FileWrite(id, event)) < 0)
{
    printf("Error: Failure writing: %s.\n", dlm_ErrorMessage(result));
}
else
{
    /* do something */
}