initial commit

This commit is contained in:
2016-01-13 10:05:51 +01:00
commit 05efb38fed
42 changed files with 4331 additions and 0 deletions

24
src/ecoError.c Normal file
View File

@@ -0,0 +1,24 @@
#include "ecoPCR.h"
#include <stdio.h>
#include <stdlib.h>
/*
* print the message given as argument and exit the program
* @param error error number
* @param message the text explaining what's going on
* @param filename the file source where the program failed
* @param linenumber the line where it has failed
* filename and linenumber are written at pre-processing
* time by a macro
*/
void ecoError(int32_t errorcode,
const char* message,
const char * filename,
int linenumber)
{
error("Error %d in file %s line %d : %s",
errorcode,
filename,
linenumber,
message);
}