netlib.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. // placeholder
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. void * WINAPI MemAlloc(long cb);
  6. void * WINAPI MemReAlloc(void * pb, long cb);
  7. BOOL WINAPI MemFree(void * pb);
  8. #define memcmpf(d,s,l)  memcmp((d),(s),(l))
  9. #define memcpyf(d,s,l)  memcpy((d),(s),(l))
  10. #define memmovef(d,s,l) MoveMemory((d),(s),(l))
  11. #define memsetf(s,c,l)  memset((s),(c),(l))
  12. #define strcatf(d,s)    lstrcat((d),(s))
  13. #define strcmpf(s1,s2)  lstrcmp(s1,s2)
  14. #define strcpyf(d,s)    lstrcpy((d),(s))
  15. #define stricmpf(s1,s2) lstrcmpi(s1,s2)
  16. #define strlenf(s)      lstrlen((s))
  17. LPSTR WINAPI strncpyf(LPSTR, LPCSTR, UINT);
  18. LPSTR WINAPI strrchrf(LPCSTR, UINT);
  19. UINT  WINAPI strspnf(LPCSTR, LPCSTR);
  20. LPSTR WINAPI strchrf(LPCSTR, UINT);
  21. int   WINAPI strnicmpf(LPCSTR, LPCSTR, UINT);
  22. UINT  WINAPI strcspnf(LPCSTR, LPCSTR);
  23. LPSTR WINAPI strtokf(LPSTR, LPSTR);
  24. LPSTR WINAPI strstrf(LPCSTR, LPCSTR);
  25. LPSTR WINAPI stristrf(LPCSTR, LPCSTR);
  26. int   WINAPI strncmpf(LPCSTR, LPCSTR, UINT);
  27. LPSTR WINAPI struprf(LPSTR s);
  28. extern BOOL fDBCSEnabled;
  29. #ifdef __cplusplus
  30. #define IS_LEAD_BYTE(c)     (fDBCSEnabled ? ::IsDBCSLeadByte(c) : 0)
  31. #else
  32. #define IS_LEAD_BYTE(c)     (fDBCSEnabled ? IsDBCSLeadByte(c) : 0)
  33. #endif
  34. void WINAPI InitStringLibrary(void);
  35. #ifdef __cplusplus
  36. }
  37. #endif