]> git.ipfire.org Git - thirdparty/kmod.git/commit
strbuf: Document strbuf_popchar(s)
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 15:25:52 +0000 (09:25 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 17 Nov 2024 21:35:13 +0000 (15:35 -0600)
commitb8776806de69062ec8b7e69c56d67694fbad9f4a
treeb99067ad57276678c96fcddee98efa557d3d77c9
parentc83ce183f0a9ccab4dd3d9f6c8157aa222c55261
strbuf: Document strbuf_popchar(s)

Document the behavior for these functions and also clarify why the
testsuite can check the buffer for equality after calling strbuf_str().

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/239
shared/strbuf.h
testsuite/test-strbuf.c