source: hvcontrol/src/Utilities.h@ 20

Last change on this file since 20 was 14, checked in by lstark, 16 years ago
first version of hvcontrol added
File size: 1.0 KB
Line 
1
2#ifndef UTILITIES_H_SEEN
3#define UTILITIES_H_SEEN
4
5#define SECONDS_DAY 86400
6#define SECONDS_HOUR 3600
7#define SECONDS_MINUTE 60
8
9#include <string.h>
10#include <stdio.h>
11#include <ctype.h>
12#include <sys/stat.h>
13#include <time.h>
14#include <sys/time.h>
15#include <math.h>
16
17#include "Types.h"
18
19void ParseInput(char* Pc, int* Nparam, char Param[][MAX_COM_SIZE]);
20int Match(char *str, char *cmd);
21char* Chop(char str[]);
22int MakeDir(char *Dir, char *RunDate);
23void GetUTCSecondsOfDay(double* t);
24void GetLocalSecondsOfDay(double* t);
25void GetLocalDay(int* t);
26double GetDiffTime(time_t* StartT);
27long int GetMicroSeconds();
28
29void PrintByteBin(unsigned char i);
30void sPrintByteBin(unsigned char i, char* str);
31void PrintWordBin(unsigned short i);
32void sPrintWordBin(unsigned short i, char* str);
33int sPrintBin2Dec(const char* bs, unsigned int* result);
34int Bin2Dec(int bin);
35int Bin2Dec(const char *bs);
36int sPrintHex2Dec(const char* xs, unsigned int* result);
37int IsNoDigit(const char* str);
38void SignalHandler(int Signal);
39
40#endif
Note: See TracBrowser for help on using the repository browser.