LOWDOWN_FILE_DIFF(3)
π lowdown_file_diff β bestie edition
okay so this is LOWDOWN_FILE_DIFF(3), a manual page from the Library Functions Manual, and it lives in the library liblowdown. she's a diff girlie and she's about to eat. β¨
π¦ NAME
lowdown_file_diff β parse and diff Markdown files into formatted output. yes bestie, both. parse AND diff. she's multitalented, it's giving main character energy fr fr. π
π LIBRARY
library βliblowdownβ β that's the house she lives in, no cap. π
β¨ SYNOPSIS
#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);
look at her signature, iconic. copy it exactly, don't freestyle the includes, i'm literally begging. π«Ά
πΈ DESCRIPTION
so the way this works: she parses two lowdown(5) file streams, fnew and fold, and she produces an edit script in ret of size retsz, all according to the configurations in opts. it's a whole glow-up pipeline. π§
the output format? that's decided by opts->type. she doesn't guess, she reads the vibe check. β
important bestie: on success, the caller is responsible for freeing ret. that's you. you're the caller. she's not gonna do it for you. free your girl. π
π₯ RETURN VALUES
- returns zero on failure, non-zero on success. that's right, inverted from what you'd expect, and no she will not be explaining herself. π
- failure happens when the file read failed, or on memory exhaustion. that's it, those are the two ways she goes down. π
on failure, the contents ofretandretszare undefined β do not touch, do not peek, do not build a personality around them. undefined is undefined and we respect the chaos. π
π SEE ALSO
lowdown(3)β her sister, go say hi. π
and that's the whole page bestie, you ate. this was LOWDOWN_FILE_DIFF(3) from Debian, dated $Mdocdate$, and she's out here slaying on the daily. mwah, periodt. ππ
π¦β¨
π¦ where this page comes from
- alpine 3.24: lowdown-doc 3.0.1-r0 Β· ISC
- arch rolling: lowdown 3.2.1-1 Β· ISC
- debian trixie: liblowdown-dev 2.0.2-2 Β· ISC
- fedora 43: lowdown-libs 2.0.2-2.fc43 Β· ISC AND BSD-3-Clause AND MIT
- fedora 43: lowdown-libs 2.0.2-2.fc43 Β· ISC AND BSD-3-Clause AND MIT
- fedora 44: lowdown-libs 2.0.2-3.fc44 Β· ISC AND BSD-3-Clause AND MIT
- fedora 44: lowdown-libs 2.0.2-3.fc44 Β· ISC AND BSD-3-Clause AND MIT
- nixpkgs unstable: lowdown 3.0.1
- nixpkgs unstable: lowdown-unsandboxed 3.0.1
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- opensuse-leap 16.0: lowdown-devel 1.1.0+git20231119.1200b9f-bp160.1.13 Β· ISC
- ubuntu noble: liblowdown-dev 1.1.0-1 Β· ISC
- ubuntu questing: liblowdown-dev 2.0.2-2
- ubuntu resolute: liblowdown-dev 2.0.4-2 Β· ISC
- ubuntu stonking: liblowdown-dev 3.0.1-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms