myFile.h 552 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <time.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include <wchar.h>
  7. #ifdef _WIN32
  8. #include <windows.h>
  9. #else
  10. #include<sys/types.h>
  11. #include<sys/stat.h>
  12. #endif
  13. typedef struct {
  14. char* pbuf;
  15. int dlen;
  16. int blen;
  17. }node_t;
  18. class myFile {
  19. public:
  20. char* wchar_to_char(wchar_t* tchr);
  21. wchar_t* char_to_wchar(char* chr);
  22. int read_file(char* path, node_t* nd);
  23. int get_time(char *path, char *time, int len);
  24. int get_version(char* path, void* version, int len);
  25. };