Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Commit

Permalink
Cleanup input.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneStefani committed Jan 14, 2018
1 parent 7aaa17f commit c7ec650
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@
#define N_SAMPLES 10000
#define CHAR_TO_READ 255

// /* function declaration */
// void read_data(char* filepath, double* data_array);
// void save_data(char* filepath, double* data_array);

// int main(void) {
// // Allocate memory for storing data (we want to allocate on stack or heap?)
// // double **distribution = (double **)malloc(sizeof(double*)*N_SAMPLES);
// // if (words==NULL)
// // {
// // fprintf(stderr,"Out of memory (1).\n");
// // exit(1);
// // }

// // Allocate some space for putting our data etc...
// double samples[N_SAMPLES];
// char* filepath = "samples/triangular.txt" ;

// //Read in the data from file
// read_data(filepath, samples);

// // Test to print out some values...
// int j;
// for(j = 0; j < 30; j++)
// printf("%f\n", samples[j]);

// } // END OF MAIN

void read_data(char *filepath, double *data_array, int num_to_read) {
char buff[CHAR_TO_READ];
char *end;
Expand Down

0 comments on commit c7ec650

Please sign in to comment.