Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ((len = _read(file, &buffer, 4096)))
- {
- if (i == 1)
- output = malloc(sizeof(char) * 4096 + 2);
- else
- output = realloc(output, sizeof(char) * (4096 * i) + i);
- strcpy(output, buffer, len);
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement