2 ; Ullrich von Bassewitz, 31.05.1998
4 ; Note: strspn & strcspn call internally this function and rely on
5 ; the usage of only ptr2 here! Keep in mind when appling changes
6 ; and check the other implementations too!
8 ; int strlen (const char* s);
17 ldx #0 ; YX used as counter
28 L9: tya ; get low byte of counter, hi's all set