- Write A Function Called Copycstring That Takes Two C Strings Char With Null Terminator S1 And 52 Repectively As Arg 1 (18.6 KiB) Viewed 26 times
Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arg
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arg
Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arguments. Write code to copy the contents of s2 into s1, until the null character is reached in s2. If the null character is reached in s1, terminate your loop (that means you stop copying s2 to 51). The function does not need to return anything.