Creating custom strtok()

why are we pass in string as pointer why cant we pass it normally

hello @abhayg1602
in actual strtok we pass pointer , so to make our custom strtok similar to actual strtok, we r passing it pointer, no other reason