No Description

Ho Jun Yi 736052e6fb Done 1 year ago
include b92854ce44 exercise with tests 2 years ago
src 736052e6fb Done 1 year ago
test b92854ce44 exercise with tests 2 years ago
.drone.yml b92854ce44 exercise with tests 2 years ago
.gitignore b92854ce44 exercise with tests 2 years ago
LICENSE e162382b95 Initial commit 2 years ago
Makefile b92854ce44 exercise with tests 2 years ago
README.md 0e43045269 Update 'README.md' 2 years ago
test_all 736052e6fb Done 1 year ago

README.md

Reverse name

Exercise 16

Write a function named reverse_name that takes two parameters:

  • src: a string of the form «firstname lastname»
  • dest: an uninitialized char array; guaranteed to have the same size as src

reverse_name should set dest to have the same content as src, but in the format «lastname firstname».

For example, if src were «John Smith», dest should be «Smith John» after the function runs.