*/
// ARM implementation in ../arm/strncmp.s
+// ARM64 implementation in ../arm64/strncmp.s
int
strncmp(
const char *s1,
* to the "to" string.
*/
-// ARM implementation in ../arm/strncpy.c
+// ARM and ARM64 implementation in ../arm/strncpy.c
char *
strncpy(
char *s1,
*/
// ARM implementation in ../arm/strnlen.s
+// ARM64 implementation in ../arm64/strnlen.s
size_t
strnlen(const char *s, size_t max) {
const char *es = s + max, *p = s;
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
-// ARM implementation in ../arm/strlcpy.c
+// ARM and ARM64 implementation in ../arm/strlcpy.c
size_t
strlcpy(char *dst, const char *src, size_t siz)
{
/*
* Return TRUE(1) if string 2 is a prefix of string 1.
- */
-int
-strprefix(register const char *s1, register const char *s2)
-{
- register int c;
-
- while ((c = *s2++) != '\0') {
- if (c != *s1++)
- return (0);
- }
- return (1);
+ */
+int
+strprefix(const char *s1, const char *s2)
+{
+ int c;
+
+ while ((c = *s2++) != '\0') {
+ if (c != *s1++)
+ return (0);
+ }
+ return (1);
}
char *