From 9e0d78dbc9a2aace17f3b0e883771663921cb00b Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Tue, 18 May 2021 15:47:56 +0200 Subject: Update ccommon_api.md --- docs/ccommon_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index 27bbf589..4d4e2f5e 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -76,11 +76,11 @@ cvec_str readFile(const char* name) // receiver should check errno variable cvec_str vec = cvec_str_init(); - c_with (FILE* fp = fopen(name, "r"), fclose(fp)) + c_with (FILE* fp = fopen(name, "r"), fclose(fp)) { c_with (cstr line = cstr_null, cstr_del(&line)) while (cstr_getline(&line, fp)) cvec_str_emplace_back(&vec, line.str); - + } return vec; } -- cgit v1.2.3