automerge/automerge-c/test/str_utils.h
Jason Kankiewicz 23fbb4917a Replace _INCLUDED with _H as the suffix for
include guards in C headers like the one generated by cbindgen.
2022-07-25 01:04:35 -07:00

14 lines
413 B
C

#ifndef STR_UTILS_H
#define STR_UTILS_H
/**
* \brief Converts a hexadecimal string into a sequence of bytes.
*
* \param[in] hex_str A string.
* \param[in] src A pointer to a contiguous sequence of bytes.
* \param[in] count The number of bytes to copy to \p src.
* \pre \p count `<=` length of \p src.
*/
void hex_to_bytes(char const* hex_str, uint8_t* src, size_t const count);
#endif /* STR_UTILS_H */