LOWDOWN_BUF_DIFF(3) Library Functions Manual LOWDOWN_BUF_DIFF(3) NAME lowdown_buf - parse and diff Markdown buffers into formatted output LIBRARY library "liblowdown" SYNOPSIS #include #include #include int lowdown_buf_diff(const struct lowdown_opts *opts, const char *new, size_t newsz, const char *old, size_t oldsz, char **ret, size_t *retsz); DESCRIPTION Parses lowdown(5) buffers new of size newsz and old of size oldsz and produces an edit script in ret of size retsz according to configurations opts. The script defines differences from old to new. The output format is specified by opts->type. The caller is responsible for freeing ret. RETURN VALUES Returns zero on failure, non-zero on success. Failure occurs from memory exhaustion. SEE ALSO lowdown(3) Linux 6.7.4-arch1-1 March 4, 2024 Linux 6.7.4-arch1-1