Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
641 B

  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <process.h>
  5. #include <fcntl.h>
  6. #include <io.h>
  7. #include <string.h>
  8. /* Simple but direct hash function that hashes across several bits by
  9. multiplying by the greatest prime less than bits**2 and masking off the excess. */
  10. #define PrimeHash(wOld, wNew, cBitsMax) (((wOld) + (wNew))*hashPrime[cBitsMax]&hashMask[cBitsMax])
  11. WCHAR
  12. GetCharacter(FILE *pFile);
  13. WCHAR
  14. PutCharacter(WCHAR wch, FILE *pFile);
  15. WCHAR *
  16. GetLine(
  17. WCHAR *pStr0,
  18. int maxlen,
  19. FILE *pFile
  20. );
  21. void
  22. PutLine(WCHAR *pString, FILE *pFile);
  23. const unsigned int hashPrime[];
  24. const unsigned int hashMask[];