You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simulacion-permeabilidad/fftma_module/gen/include/file_array.h

30 lines
676 B
C

#ifndef _CHUNKARRAY_H
#define _CHUNKARRAY_H
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
typedef struct file_array {
size_t init_pos;
size_t total_size;
FILE* fp;
}file_array_t;
file_array_t* file_array_create(char* filename, size_t total_size);
void file_array_read(file_array_t* file_array);
void file_array_free(file_array_t* file_array);
bool file_array_get(file_array_t* file_array, size_t pos, double *value_ptr);
bool file_array_save(file_array_t* file_array, size_t pos, double valor);
void file_array_flush(file_array_t* file_array);
size_t file_array_size(file_array_t* file_array);
#endif