Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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