]> git.proxmox.com Git - mirror_frr.git/commit
lib: add `%pSQ` and `%pSE` string escape formats
authorDavid Lamparter <equinox@diac24.net>
Mon, 22 Mar 2021 09:12:42 +0000 (10:12 +0100)
committerDavid Lamparter <equinox@diac24.net>
Tue, 30 Mar 2021 20:34:56 +0000 (22:34 +0200)
commit7798203f5cf93b35aed96925f3ffd6fa00a44790
tree11649e2d2d210eef677ac6a07065b805278cd636
parenta4cb97a6c1d8718be40a16c1c7fc0b2738d17947
lib: add `%pSQ` and `%pSE` string escape formats

These are for string quoting (`%pSQ`) and string escaping (`%pSE`); the
sets / escape methods are currently rather "basic" and might be extended
in the future.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/printfrr.h
lib/strformat.c
tests/lib/test_printfrr.c