Skip to content
This repository was archived by the owner on Jan 11, 2020. It is now read-only.
/ libc11 Public archive

Fix strlen, implement strnlen and stdint.h, add strlen/strnlen tests#12

Open
easyaspi314 wants to merge 3 commits intodryc:masterfrom
easyaspi314:master
Open

Fix strlen, implement strnlen and stdint.h, add strlen/strnlen tests#12
easyaspi314 wants to merge 3 commits intodryc:masterfrom
easyaspi314:master

Conversation

@easyaspi314
Copy link

strlen was always off by one before this. I decided to change it to the efficient strlen implementation which checks sizeof(size_t) bytes at a time using bit twiddling, as it is kind of the standard nowadays for the non-assembly implementations.

I also added stdint.h. It is not perfect, as it currently just does an educated guess about type sizes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant