Sds与GB:C字符串库,是复制还是巧合?

3作者: nephewtom7 天前原帖
我在测试一堆不同的 C/C++ 库来管理字符串时,发现了这个巧合: sds(来自 antirez 的简单动态字符串,Redis 的创建者): https://github.com/antirez/sds/blob/master/README.md?plain=1#L33 gb(来自 gingerBill 的 gb 单文件库,Odin 语言的创建者): https://github.com/gingerBill/gb/blob/master/gb_string.h#L71 是抄袭还是巧合?
查看原文
I was testing a bunch of different of C&#x2F;C++ libraries to manage strings, and found this coincidence:<p>sds (Simple Dynamic Strings from antirez, Redis creator): https:&#x2F;&#x2F;github.com&#x2F;antirez&#x2F;sds&#x2F;blob&#x2F;master&#x2F;README.md?plain=1#L33<p>gb (gb single file libs from gingerBill, Odin language creator): https:&#x2F;&#x2F;github.com&#x2F;gingerBill&#x2F;gb&#x2F;blob&#x2F;master&#x2F;gb_string.h#L71<p>Copy or coincidence?