]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.h
FIX: coverity scan error CID 121781, unused value. error 0x88 will be overritten...
[proxmark3-svn] / client / util.h
index 7a2fd46fce495375939a4ebb64c7dd584214438e..b158ec0aa6c02b4647cc31ca8221a05564fbd76d 100644 (file)
 #include <string.h>
 #include <ctype.h>
 #include <math.h>              // math.pow
+#include <time.h>       // time, gmtime
 #include "proxmark3.h" // time_t
 #include "data.h"              // for FILE_PATH_SIZE
 
+#include <time.h>
+// Handle platform specific includes
+#ifndef _WIN32
+  #include <termios.h>
+  #include <sys/ioctl.h>
+  #include <sys/time.h>
+#else
+  #include <conio.h>
+  #include <windows.h>
+#endif
+
+
 #ifndef BITMASK
 # define BITMASK(X) (1 << (X))
 #endif
@@ -92,6 +105,7 @@ char *sprint_hex(const uint8_t * data, const size_t len);
 char *sprint_bin(const uint8_t * data, const size_t len);
 char *sprint_bin_break(const uint8_t *data, const size_t len, const uint8_t breaks);
 char *sprint_hex_ascii(const uint8_t *data, const size_t len);
+char *sprint_ascii(const uint8_t *data, const size_t len);
 
 void num_to_bytes(uint64_t n, size_t len, uint8_t* dest);
 uint64_t bytes_to_num(uint8_t* src, size_t len);
Impressum, Datenschutz