2015-09-30 12:03:46 +02:00
|
|
|
/****************************************************************************
|
2016-04-08 15:38:57 +02:00
|
|
|
* Header file for utility functions *
|
2015-09-30 12:03:46 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2015-06-18 17:19:23 +02:00
|
|
|
/**
|
2016-04-08 15:38:57 +02:00
|
|
|
* @file utils.h
|
2015-09-30 12:03:46 +02:00
|
|
|
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
2016-04-08 15:38:57 +02:00
|
|
|
* @date 29 March 2016
|
|
|
|
* @brief Header file for utility functions.
|
2015-06-18 17:19:23 +02:00
|
|
|
*/
|
|
|
|
|
2015-09-30 12:03:46 +02:00
|
|
|
|
2016-04-08 15:38:57 +02:00
|
|
|
#ifndef UTILS_H_
|
|
|
|
#define UTILS_H_
|
2015-06-18 17:19:23 +02:00
|
|
|
|
2016-04-08 15:38:57 +02:00
|
|
|
#include <stdio.h>
|
2015-06-18 17:19:23 +02:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2016-03-21 11:33:06 +01:00
|
|
|
#include "obidms.h"
|
2015-06-18 17:19:23 +02:00
|
|
|
|
2016-04-08 15:38:57 +02:00
|
|
|
|
|
|
|
#define ONE_IF_ZERO(x) (((x)==0)?1:(x)) /**< If x is equal to 0, x takes the value 1.
|
|
|
|
*/
|
|
|
|
|
2015-06-18 17:19:23 +02:00
|
|
|
|
2016-04-08 15:38:57 +02:00
|
|
|
/*
|
|
|
|
* TODO
|
|
|
|
*/
|
|
|
|
int count_dir(char *dir);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* UTILS_H_ */
|