]> Kevux Git Server - fll/commit
Update: Fix incorrect documentation and remove pointless code.
authorKevin Day <thekevinday@gmail.com>
Mon, 24 Jan 2022 01:33:55 +0000 (19:33 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 24 Jan 2022 01:33:55 +0000 (19:33 -0600)
commit930600ced416482989ff677a3354a16770fbd30f
tree53df13c2447d4987a2b690a9802cf888f92a5ca7
parent833ac62bbc7f4df17fcca4d14991a0ffa1851ff6
Update: Fix incorrect documentation and remove pointless code.

The documentation for some functions do not accurately reflect what the documentation does.
This is likely a copy and paste over sight.

The f_string_dynamic_resize() is adding one to destination->used.
It then updates the used to be that new number minus one.
This is pointless.
Don't bother with the "total" variable at all.
Also use the F_memory_default_allocation_small_d by rather than 1 when resizing.
level_0/f_string/c/string.h
level_0/f_string/c/string_dynamic.c
level_0/f_string/c/string_dynamic.h