From: Loup Vaillant Date: Sun, 23 Feb 2020 14:50:23 +0000 (+0100) Subject: vector_to_header now handles leading empty lines X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=830b7b68a9edf785978dcf919fe6791e6e020dbe;p=Monocypher.git vector_to_header now handles leading empty lines --- diff --git a/tests/gen/vector_to_header.c b/tests/gen/vector_to_header.c index a043398..ad60109 100644 --- a/tests/gen/vector_to_header.c +++ b/tests/gen/vector_to_header.c @@ -73,6 +73,11 @@ int main(int argc, char** argv) int c = getchar(); int nb_vec = 0; + // seek first line + while (!is_digit(c) && c != ':' && c != EOF) { + c = getchar(); + } + while (c != EOF) { int size = 0; if (c == ':') {