]> git.ipfire.org Git - pakfire.git/commit
file: Build a function to search a file for a string
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Jan 2025 15:27:26 +0000 (15:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Jan 2025 15:27:26 +0000 (15:27 +0000)
commite073d0d4e2e0499e0579271056823495c5cce9a1
treeac9554c882c502a27247c4cffaad12df4bf204e3
parent33d627d1d7244f4bef9f8b1210c11120538fe24d
file: Build a function to search a file for a string

This is done by mapping the file into memory and performing a fast
string search.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/file.c
src/pakfire/file.h