Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char **words=(char**)malloc(sizeof(char*)*size1);
- if(*words==NULL) return NULL;
- for(i=0; i<size1; i++)
- {
- size2=read_lenght(text+j);
- *(words+i)=(char*)malloc(sizeof(char)*size2);
- if(*(words+i)==NULL) return NULL;
- j=j+size2+1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement