Question: Why kilo allocating 9 bytes memory for a non-printable character?
未关闭
- 主要语言
- C
- 星标
- 9.1k
- 派生
- 995
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am reading kilo code for learning C language.
In line551, allocating 9 bytes memory for one non-printable character.
Why 9 bytes memory need for a non-printable character?
And `nonprint` variable is only initialized to 0 at line 543, and it is not assigned to other value.
So I think `nonprint` is not useful at line 551.
What's the meaning of this?
row->render = malloc(row->size + tabs*8 + nonprint*9 + 1);
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。