testresults.h 495 B

123456789101112131415161718192021222324
  1. #if !defined(_TestResults_h)
  2. #define _TestResults_h
  3. #include <string.h>
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7. typedef struct TestResults_T
  8. {
  9. char * results;
  10. int testResultMaxLength;
  11. } TestResults;
  12. int GetTestResults( TestResults *T ,int argc, char *argv[]);
  13. const char * GetTestHelp(void);
  14. inline void StoreTestResult(TestResults *p, char *msg)
  15. {
  16. if (p)
  17. {
  18. sprintf(&(p->results[strlen(p->results)]),"%s",msg);
  19. }
  20. }
  21. #if defined(__cplusplus)
  22. }
  23. #endif
  24. #endif /* include guards */