Skip to content

Commit 2938722

Browse files
committed
Change function DeletePerson to RemovePerson
1 parent 54941e4 commit 2938722

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c/AddressBook/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Person *ChangePerson(struct Person *contacts);
3636
Not Found -> NULL
3737
Success -> struct Person*
3838
*/
39-
struct Person *DeletePerson(struct Person **contacts);
39+
struct Person *RemovePerson(struct Person **contacts);
4040

4141
/*
4242
Not Found -> NULL
@@ -98,7 +98,7 @@ int main()
9898
}
9999
case 4: {
100100
printf("Please input the name:\n");
101-
struct Person *person = DeletePerson(&contacts);
101+
struct Person *person = RemovePerson(&contacts);
102102
if (person == NOT_FOUND)
103103
{
104104
printf("The person is not found\n");
@@ -206,7 +206,7 @@ struct Person *ChangePerson(struct Person *contacts)
206206
}
207207
}
208208

209-
struct Person *DeletePerson(struct Person **contacts)
209+
struct Person *RemovePerson(struct Person **contacts)
210210
{
211211
struct Person *person = FindPerson(*contacts);
212212

0 commit comments

Comments
 (0)