Objective
I'm learning to program, please explain every step to me like I'm a child and talk directly to me through the comments but make it fun
In this challenge, you will write a program that concatenates two strings provided by arguments 1 and 2 without using the c-string library (string.h)
Program Overview
- Create a function that concatenates 2 c-strings.
- Pass arg1 and arg2 to the new function
- Print out the concatenated strings
Steps to complete
- Copy the string_length function from level 1, by using
cat
on the main.c from the prior level, which is located at ../01/main.c
- In the main function , which must receive command parameters argc and argv
- void concatenate_strings(char str1[], char str2[])
- The function copies str2 to the end of str1 *
- if you want you may copy the string_length function from the prior level.
- Write a user test that tests the program's length function (
user_tests/utest3.2.json
)
- To use a double quote in the test case, it must be escaped, "which is done like \"this\"."
- Run /challenge/tester to get the flag