X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/5cde90ce82c099520a3cfe2f0bc533b65216137a..7a58d786d9ca645f1e61a5cb4128f354ae7a80ef:/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; }