Functions

src/io_eegtools.c File Reference

#include "io_eegtools.h"
#include <stdlib.h>
#include <stdint.h>

Go to the source code of this file.

Functions

Arrayarray_from_file (FILE *in)
 Read Array from file.
void array_to_file (FILE *out, const Array *a)
 Write Array to disk.

Function Documentation

Array* array_from_file ( FILE *  in  ) 

Read Array from file.

The FILE* must be opened in read-binary "rb" mode.

The format of the array is described in File Format for Arrays .

Parameters:
out the file pointer to read from (opened read-binary "rb")
Returns:
the output array

Definition at line 37 of file io_eegtools.c.

void array_to_file ( FILE *  out,
const Array a 
)

Write Array to disk.

The FILE* must be opened in write-binary "wb" mode.

The format of the array is described in rawfileformat .

Parameters:
out the file pointer to write to (opened write-binary "wb")
a the output array

Definition at line 78 of file io_eegtools.c.