X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/55acbb2a3903f7940d0db5fae2e8f4fdab51d1b8..30a46ed86a7c531b5d2601d6ef74c717b28c330d:/client/util.h diff --git a/client/util.h b/client/util.h index cec187cf..ce8876ed 100644 --- a/client/util.h +++ b/client/util.h @@ -16,13 +16,20 @@ #include #include +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + int ukbhit(void); void AddLogLine(char *fileName, char *extData, char *c); void AddLogHex(char *fileName, char *extData, const uint8_t * data, const size_t len); void AddLogUint64(char *fileName, char *extData, const uint64_t data); void AddLogCurrentDT(char *fileName); -void FillFileNameByUID(char *fileName, uint8_t * uid, char *ext); +void FillFileNameByUID(char *fileName, uint8_t * uid, char *ext, int byteCount); void print_hex(const uint8_t * data, const size_t len); char * sprint_hex(const uint8_t * data, const size_t len);