---
name: "DlpAddSyncLogEntry"
section: "3"
platform: "linux"
package: "coldsync"
version: "3.0+pre3-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/DlpAddSyncLogEntry"
---

# DlpAddSyncLogEntry(3)

write sync log to a PalmOS device

## 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)](/libpconn/3.md).
