Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void printNameWithArray(contact* contactArray, int size)
- {
- int i = 0;
- for(; i < size; i++)
- {
- printf("\nID: %d\n", contactArray[i].ID);
- printf("Name: %s\n", contactArray[i].name);
- printf("Surname: %s\n", contactArray[i].surname);
- printf("City: %s\n", contactArray[i].address->city);
- printf("Street: %s\n", contactArray[i].address->street);
- printf("House number: %d\n", contactArray[i].address->houseNumber);
- printf("Zip code: %s\n", contactArray[i].address->zipCode);
- printf("Post office: %s\n", contactArray[i].address->postOffice);
- int itterator =1;
- phone_t *temp = contactArray[i].phoneHead;
- while(temp != NULL)
- {
- printf("%d) %d\n", itterator, temp->phoneNumber);
- itterator++;
- temp = temp->next;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement