]> Kevux Git Server - fll/commit
Bugfix: --last does not count correctly when 2-byte or more characters exist
authorKevin Day <thekevinday@gmail.com>
Sat, 25 Apr 2020 17:23:20 +0000 (12:23 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 25 Apr 2020 17:23:20 +0000 (12:23 -0500)
commitc9a69946e9d3425c98d73eee275ca98dd2809e9e
tree1905c6c352b8a198efb9f32f0a52215d874cf148
parentdbd2b85a7172e07cd8567184f6ffb999d7e39b5e
Bugfix: --last does not count correctly when 2-byte or more characters exist

The last parameter does not take into consideration UTF-8 widths.
Redesign counting to accommodate the 2-byte, 3-byte, and 4-byte character widths.
level_3/byte_dump/c/byte_dump.c
level_3/byte_dump/c/private-byte_dump.c