diff options
Diffstat (limited to '5')
| -rw-r--r-- | 5/5.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,8 +20,9 @@ int main(int argc, char *argv[]) { mstrncpy(s, t, n); printf("mstrncpy: %s\n", s); + n = 7; t = "may the force be with you"; - mstrncat(s, t, 7); + mstrncat(s, t, n); printf("mstrncat: %s\n", s); free(s); |
