From 442a49ad5a48d417345959b903ae6a6d32d55759 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Fri, 15 Apr 2022 15:51:30 -0500 Subject: Great C programming fun Excellent fundamentals and displine training, many tools and techniques exercises: gdb, emacs, valgrind, git --- 18_reverse_str/README | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 18_reverse_str/README (limited to '18_reverse_str/README') diff --git a/18_reverse_str/README b/18_reverse_str/README new file mode 100644 index 0000000..af46aa6 --- /dev/null +++ b/18_reverse_str/README @@ -0,0 +1,15 @@ +For this problem, you will write the function + + void reverse(char * str) + +in the provided reverse.c file. This function should reverse the string +passed into it (that is, if given "abc", it should change the contents +of that string to read "cba"). Note that this function's return type +is "void"---it modifies the string passed into it in place. + +We have provided a main function which you can use to test your +reverse function (do you recognize the quotations?). The correct +output for your program can be found in reverse_ans.txt, so you can +diff your program's output against it. + +Submit your reverse.c file for grading. -- cgit v1.2.3