Differences From Artifact [287c38190e]:
- File src/string.c — part of check-in [c9caa75847] at 2013-06-08 09:47:14 on branch trunk — Use (void*)NULL instead of NULL in varargs. (user: js, size: 6605) [annotate] [blame] [check-ins using]
To Artifact [cddac8d574]:
- File src/string.c — part of check-in [e1f08057a2] at 2014-07-07 22:46:47 on branch trunk — Add missing definition of _C99_SOURCE (user: js, size: 6593) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
57 58 59 60 61 62 63 | size_t len; len = strlen(s); if ((copy = malloc(len + 1)) == NULL) return NULL; | | < | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | size_t len; len = strlen(s); if ((copy = malloc(len + 1)) == NULL) return NULL; memcpy(copy, s, len + 1); return copy; } char* cfw_strndup(const char *s, size_t max) { |
︙ | ︙ |