1LOWDOWN_BUF_DIFF(3) BSD Library Functions Manual LOWDOWN_BUF_DIFF(3)
2
4 lowdown_buf — parse and diff Markdown buffers into formatted output
5
7 library “liblowdown”
8
10 #include <sys/queue.h>
11 #include <stdio.h>
12 #include <lowdown.h>
13
14 int
15 lowdown_buf_diff(const struct lowdown_opts *opts, const char *new,
16 size_t newsz, const char *old, size_t oldsz, char **ret,
17 size_t *retsz);
18
20 Parses lowdown(5) buffers new of size newsz and old of size oldsz and
21 produces an edit script in ret of size retsz according to configurations
22 opts. The script defines differences from old to new. The output format
23 is specified by opts->type.
24
25 The caller is responsible for freeing ret.
26
28 Returns zero on failure, non-zero on success. Failure occurs from memory
29 exhaustion.
30
32 lowdown(3)
33
34BSD December 17, 2023 BSD