* with the system versions.
*/
#if TESTING
-# undef strndup
-# define strndup test_strndup
+# undef strndup
+# define strndup test_strndup
char *test_strndup(const char *, size_t);
#endif
}
/* Don't assume that the source string is nul-terminated. */
- for (p = s; (size_t) (p - s) < n && *p != '\0'; p++)
+ for (p = s; (size_t)(p - s) < n && *p != '\0'; p++)
;
length = p - s;
copy = malloc(length + 1);