Skip to content

Commit

Permalink
Change function DeletePerson to RemovePerson
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC committed Oct 27, 2022
1 parent 54941e4 commit 2938722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c/AddressBook/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct Person *ChangePerson(struct Person *contacts);
Not Found -> NULL
Success -> struct Person*
*/
struct Person *DeletePerson(struct Person **contacts);
struct Person *RemovePerson(struct Person **contacts);

/*
Not Found -> NULL
Expand Down Expand Up @@ -98,7 +98,7 @@ int main()
}
case 4: {
printf("Please input the name:\n");
struct Person *person = DeletePerson(&contacts);
struct Person *person = RemovePerson(&contacts);
if (person == NOT_FOUND)
{
printf("The person is not found\n");
Expand Down Expand Up @@ -206,7 +206,7 @@ struct Person *ChangePerson(struct Person *contacts)
}
}

struct Person *DeletePerson(struct Person **contacts)
struct Person *RemovePerson(struct Person **contacts)
{
struct Person *person = FindPerson(*contacts);

Expand Down

0 comments on commit 2938722

Please sign in to comment.