]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add function read_line_to_trash() to read a line of a file
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Jul 2023 16:31:53 +0000 (18:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Sep 2023 14:25:19 +0000 (16:25 +0200)
commit1f2433fb6a0889dbcc0a85eddfc9a59e835c6128
treeac4423797dcaca856b42a58e0dfdadb4e81a14fd
parent5f10176e2c9eca3bbae39a7707ef226f3e2abe0d
MINOR: tools: add function read_line_to_trash() to read a line of a file

This function takes on input a printf format for the file name, making
it particularly suitable for /proc or /sys entries which take a lot of
numbers. It also automatically trims the trailing CR and/or LF chars.
include/haproxy/tools.h
src/tools.c