]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.h
Update README.md
[proxmark3-svn] / client / util.h
index f81d7d88ce9232cef96ae08c22226b3ba1ae46d7..b158ec0aa6c02b4647cc31ca8221a05564fbd76d 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
-#include <time.h>
 #include <math.h>              // math.pow
+#include <time.h>       // time, gmtime
+#include "proxmark3.h" // time_t
 #include "data.h"              // for FILE_PATH_SIZE
-#include "proxmark3.h"
+
+#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))
@@ -93,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