You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

std_testcase_io.h 1.4 kB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* header file to define functions in io.c. Not named io.h
  2. because that name is already taken by a system header on
  3. Windows */
  4. #ifndef _STD_TESTCASE_IO_H
  5. #define _STD_TESTCASE_IO_H
  6. #include "std_testcase.h" /* needed for the twoint struct */
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. void printLine(const char * line);
  11. void printWLine(const wchar_t * line);
  12. void printIntLine (int intNumber);
  13. void printShortLine (short shortNumber);
  14. void printFloatLine (float floatNumber);
  15. void printLongLine(long longNumber);
  16. void printLongLongLine(int64_t longLongIntNumber);
  17. void printSizeTLine(size_t sizeTNumber);
  18. void printHexCharLine(char charHex);
  19. void printWcharLine(wchar_t wideChar);
  20. void printUnsignedLine(unsigned unsignedNumber);
  21. void printHexUnsignedCharLine(unsigned char unsignedCharacter);
  22. void printDoubleLine(double doubleNumber);
  23. void printStructLine(const twoIntsStruct * structTwoIntsStruct);
  24. void printBytesLine(const unsigned char * bytes, size_t numBytes);
  25. size_t decodeHexChars(unsigned char * bytes, size_t numBytes, const char * hex);
  26. size_t decodeHexWChars(unsigned char * bytes, size_t numBytes, const wchar_t * hex);
  27. int globalReturnsTrue();
  28. int globalReturnsFalse();
  29. int globalReturnsTrueOrFalse();
  30. /* Define some global variables that will get argc and argv */
  31. extern int globalArgc;
  32. extern char** globalArgv;
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif

No Description

Contributors (1)