1LOWDOWN_FILE_DIFF(3) BSD Library Functions Manual LOWDOWN_FILE_DIFF(3)
2
4 lowdown_file_diff — parse and diff Markdown files 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_file_diff(const struct lowdown_opts *opts, FILE *fnew,
16 FILE *fold, char **ret, size_t *retsz);
17
19 Parses lowdown(5) file streams fnew and fold and produces an edit script
20 in ret of size retsz according to configurations opts. The output format
21 is specified by opts->type.
22
23 On success, the caller is responsible for freeing ret.
24
26 Returns zero on failure, non-zero on success. Failure occurs when the
27 file read failed or on memory exhaustion. On failure, the contents of
28 ret and retsz are undefined.
29
31 lowdown(3)
32
33BSD December 17, 2023 BSD