Advertisement
Guest User

Untitled

a guest
May 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void inicjalizacja_OSOBA(OSOBA *osoba, char *name, char *surname, char *city, int age){
  2. osoba->imie = malloc( strlen(name)* sizeof(char)) + 1 ;
  3. osoba->nazwisko = malloc(strlen(surname) * sizeof(char)) + 1;
  4. osoba->miejscowosc = malloc(strlen(city) * sizeof(char)) + 1;
  5. osoba->wiek = malloc(sizeof(int));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement