lowdown_file_diff(3)

lowdown_file_diff3

Parse and diff markdown files into formatted output

Usage

#include <sys/queue.h>

#include <stdio.h>

#include <lowdown.h>

int

lowdown_file_diff(const struct lowdown_opts *opts, FILE *fnew, FILE *fold, char **ret, size_t *retsz);

Library

library “liblowdown”

Overview

Parses lowdown(5) file streams fnew and fold and produces an edit script in ret of size retsz according to configurations opts. The output format is specified by opts->type.

On success, the caller is responsible for freeing ret.

Return values

Returns zero on failure, non-zero on success. Failure occurs when the file read failed or on memory exhaustion. On failure, the contents of ret and retsz are undefined.

Releases

4 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13–Arch

From lowdown 3.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.