From: Lukas Krickl Date: Tue, 7 Nov 2023 19:29:46 +0000 (+0100) Subject: Documented behavior of preproc X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=02ad8989fe80e5894f1a94daf2a638bac5d019ae;p=ulas%2F.git Documented behavior of preproc --- diff --git a/include/ulas.h b/include/ulas.h index 14c10f0..072d047 100644 --- a/include/ulas.h +++ b/include/ulas.h @@ -249,6 +249,8 @@ int ulas_preproc(FILE *dst, FILE *src); // returns 0 if no more data can be read // 1 if data was read // -1 on error +// it also places the processed line into pp->line.buf +// note that this is overwritten by every call! int ulas_preprocnext(struct ulas_preproc *pp, FILE *dst, FILE *src, char *buf, int n);