5 ms·
In C89, external symbols were only guaranteed to have 6 significant characters, so both "mem_copy" and "memcopy" get truncated. And in modern times, I suspect
by dale_glass 3y ago
In C89, external symbols were only guaranteed to have 6 significant characters, so both "mem_copy" and "memcopy" get truncated.
And in modern times, I suspect it'd just be thematically weird to have strcpy, strcat, and safeCopyString in string.h, so old conventions still stick around.
- GoblinSlayer 3y agoThen what happened to creat?
- pjmlp 3y agoK&R C compiler restrictions, possibly. Never bothered to read its source code.