Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Jan 6, 2026

Adds implementations for these functions:

  • memchr
  • memcmp
  • strcat
  • strchr
  • strcpy (I think its possible to optimize this further)
  • strncpy (based off stpncpy, so probably could be optimized further)
  • strstr (wraps memmem, so probably could be optimized further)

Also to be implemented:

  • strncat
  • strtok_r
  • strtok (wraps strtok_r)

Tests will also be needed for these functions too

ex de, hl
; move to the end of src
cpir
add hl, bc ; rewind to the beginning of src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this works unless BC was zero before this particular cpir.

@ZERICO2005
Copy link
Contributor Author

My intent is to rebase everything into two/three commits:

  • add functions
  • maybe another just for strtok(_r)?
  • add tests

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants