X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/5cde90ce82c099520a3cfe2f0bc533b65216137a..827a184ea907acf9b2b2d72d89ab67572728e11e:/src/zerogrouping/zg.c diff --git a/src/zerogrouping/zg.c b/src/zerogrouping/zg.c index 7d93343..779694f 100644 --- a/src/zerogrouping/zg.c +++ b/src/zerogrouping/zg.c @@ -47,6 +47,8 @@ int main() { if ((len = zg_group(&zg, buff, c))) fwrite(buff, 1, len, stdout); } + /* imprimo si quedó algo en el buffer */ + if ((len = zg_group_finish(&zg, buff))) fwrite(buff, 1, len, stdout); return 0; }