Add an assertion to Person_print

This commit is contained in:
Dan Buch 2024-04-20 13:01:33 -04:00
parent 01348b1436
commit 6ea704fe5b
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -33,6 +33,8 @@ void Person_destroy(struct Person *who)
void Person_print(struct Person *who)
{
assert(who != NULL);
printf("Name: %s\n", who->name);
printf("\tAge: %d\n", who->age);
printf("\tHeight: %d\n", who->height);