hv_vos_Vsscanf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * @file hv_vos_Vsscan.h
  3. * @brief Header file of Vsscan.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-03-01
  15. */
  16. #ifndef _HV_VOS_VSSCANF_H
  17. #define _HV_VOS_VSSCANF_H
  18. #include "hv_vos_Types.h"
  19. VOS_EXTERN_C_BEGIN
  20. /** @defgroup VOS_VSSCANF VOS_VSSCANF
  21. * VOS vsscanf related functions
  22. * @{
  23. */
  24. /** @brief vsscanf
  25. * @param s input string
  26. * @param format the format for out string
  27. * @param va_list argument list
  28. * @return 0: no char return other: return nums of output char
  29. */
  30. INT32 Hv_Vos_VSSCANF(const CHAR8 *s, const CHAR8 *format, va_list arg);
  31. /** @brief sscanf
  32. * @param buf input string
  33. * @param fmt the format for out string
  34. * @param ... the output vars
  35. * @return 0: no char return other: return nums of output char
  36. */
  37. INT32 Hv_Vos_SSCANF(const CHAR8 * buf, const CHAR8 * fmt, ...);
  38. #define HV_VSSCANF Hv_Vos_VSSCANF //!< short form of Hv_Vos_VSSCANF
  39. #define HV_SSCANF Hv_Vos_SSCANF //!< short form of Hv_Vos_SSCANF
  40. /** @} */
  41. VOS_EXTERN_C_END
  42. #endif