Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void inicjalizacja_OSOBA(OSOBA *osoba, char *name, char *surname, char *city, int age){
- osoba->imie = malloc( strlen(name)* sizeof(char)) + 1 ;
- osoba->nazwisko = malloc(strlen(surname) * sizeof(char)) + 1;
- osoba->miejscowosc = malloc(strlen(city) * sizeof(char)) + 1;
- osoba->wiek = malloc(sizeof(int));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement