modify strlen() from the assembly version to the portable C version