No Description

Ho Jun Yi 520af223a8 Done 1 year ago
include 7c12eee39b exercise with tests 2 years ago
src 520af223a8 Done 1 year ago
test 7c12eee39b exercise with tests 2 years ago
.drone.yml 7c12eee39b exercise with tests 2 years ago
.gitignore 7c12eee39b exercise with tests 2 years ago
LICENSE 2d9d661d3d Initial commit 2 years ago
Makefile 7c12eee39b exercise with tests 2 years ago
README.md e58ea376ac Update 'README.md' 2 years ago
test_all 520af223a8 Done 1 year ago

README.md

Update contact

Exercise 18

In file include/contact.h the new type struct contact is defined.

In file test/contact_test.c a variable friend of type contact is declared and initialized.

Your task is to write in file contact.c the function update_contact which takes a pointer to the struct contact, a new name, a new number, and a new address to change the struct’s members. Look at the function declaration for the order of arguments and appropriate types.