Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define CHUNK_SIZE 64
- unsigned readFile(int **arr, unsigned size) {
- FILE *in = fopen("input.txt", "r");
- size_t i = 0;
- while (fscanf(in, "%d", *arr[i]) == 1) {
- i++;
- if (i % CHUNK_SIZE) {
- *arr = realloc(*arr, size + CHUNK_SIZE);
- }
- }
- fclose(in);
- }
- unsigned countTripletsSum(int *arr, unsigned size, int v) {
- return 0;
- }
- int main() {
- printf("hello world!\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement