Advertisement
Guest User

Untitled

a guest
May 27th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. char **words=(char**)malloc(sizeof(char*)*size1);
  3. if(*words==NULL) return NULL;
  4.  
  5. for(i=0; i<size1; i++)
  6. {
  7. size2=read_lenght(text+j);
  8. *(words+i)=(char*)malloc(sizeof(char)*size2);
  9. if(*(words+i)==NULL) return NULL;
  10. j=j+size2+1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement