/************************************************************************/
/* Copyright 2003-2012 MBARI											*/
/************************************************************************/
/* Summary	: Definitions for Utility library for BEDS					*/
/* Filename : utils.h													*/
/* Author	: Robert Herlien (rah)										*/
/* Project	: Benthic Event Detection System (BEDS)						*/
/* Revision: 1.0														*/
/* Created	: 09/28/2012 from OASIS utils.h								*/
/*																			*/
/* MBARI provides this documentation and code "as is", with no warranty,	*/
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium	*/
/* Research Institute to assist in its use, correction, modification, or	*/
/* enhancement. This information should not be published or distributed to	*/
/* third parties without specific written permission from MBARI.			*/
/*																			*/
/************************************************************************/
/* Modification History:												*/
/* 28sep2012 rah - created from OASIS utils.h							*/
/* $Log$
 */
/************************************************************************/

#ifndef INCutilsh
#define INCutilsh		1

#include <mbariTypes.h>				/* MBARI type definitions			*/
#include <fatFs/ff.h>				/* FatFs definitions				*/
#include <time.h>


/****************************************/
/* Function Declarations				*/
/****************************************/

MBool	delimit(Reg char c);
void	newline();
void	removeNewline(char *s);
Nat16	readWord(FIL *fp);
Nat32	readLong(FIL *fp);
Int32	getDuration(char *spec);
time_t	getTimespec(char *spec);
void	printTimespec(MBool lng);

#endif	/* INCutilsh */
