dc_code.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /***************************************************************************
  2. *
  3. * 通用函数定义
  4. *
  5. * Author : Li Bo Feng
  6. *
  7. * Update History
  8. * DATE OWNER DESCRIPTION
  9. * ----------- ------------ -----------
  10. * 2014-12-29 Li Bo Feng Generated
  11. *
  12. ***************************************************************************/
  13. #ifndef _DC_CODE_H_
  14. #define _DC_CODE_H_
  15. #ifdef _EDIT_IN_WINDOWS_ONLY
  16. #include <windows.h>
  17. #endif
  18. #include <unistd.h>
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <stddef.h>
  22. #include <stdarg.h>
  23. #include <ctype.h>
  24. #include <string.h>
  25. #include <signal.h>
  26. #include <sys/file.h>
  27. #include <sys/dir.h>
  28. #include <sys/stat.h>
  29. #include "dc.h"
  30. #include "ab_code.h"
  31. /**
  32. * 交易日志记录字符串分割
  33. * 参数:
  34. * stringBuffer 交易日志记录,即被分割字符串
  35. * splitChar 分隔字符
  36. * reveiveBuffer 交易日志字段,即分割后字符串接收数组
  37. * inReveiveBufferLength_outSplittedStringCount 输出分割后字符串数量
  38. * 返回:
  39. * 正常返回 DC_RET_OK,否则返回错误码
  40. */
  41. int splitString(char *stringBuffer, char splitChar, char reveiveBuffer[][MAX_FIELD_SIZE],
  42. int *inReveiveBufferLength_outSplittedStringCount);
  43. #endif