DlpAddSyncLogEntry(3)

NAME
DlpAddSyncLogEntry - write sync log to a PalmOS device

LIBRARY
libpconn

SYNOPSIS
#include <palm.h>
#include <pconn/pconn.h>
int
DlpAddSyncLogEntry(PConnection *pconn, const char *msg);

DESCRIPTION
DlpAddSyncLogEntry writes the sync log to the Palm. Despite its name, it does not append to the log, it writes it. Subsequent calls have no effect.

If the log exceeds DLPC_MAXLOGLEN (2048) characters, including the terminating NUL, the log message is truncated, and only the last DLPC_MAXLOGLEN characters will be sent to the Palm. This is because if the log contains error messages, they are more likely to be at the end.

msg specifies the log message.

RETURN VALUE
DlpAddSyncLogEntry return 0 if successful, or a negative value otherwise.

SEE ALSO
libpconn(3).