Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char **readText(char **Text,int *Count_sentence){
- int size = 100; //память в text
- char *sentence;
- do{
- sentence = readSentence();
- if (*Count_sentence == size - 3){
- size += 10;
- Text = realloc(Text, size * sizeof(char*));
- }
- Text[*Count_sentence] = sentence;
- (*Count_sentence)++;
- }while(strcmp(sentence,"End!"));
- //return Text;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement