-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patharraytoc.h
More file actions
43 lines (36 loc) · 1.05 KB
/
arraytoc.h
File metadata and controls
43 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef COM_MODP_STRINGENCODERS_ARRAYTOC
#define COM_MODP_STRINGENCODERS_ARRAYTOC
#include "modp_stdint.h"
#ifdef __cplusplus
#define BEGIN_C extern "C" {
#define END_C }
#else
#define BEGIN_C
#define END_C
#endif
BEGIN_C
/** \brief output a uint32_t array into source code
*
*
* \param[in] ary the input array
* \param[in] size number of elements in array
* \param[in] name the name of the struct for the source code
*
*/
void uint32_array_to_c(const uint32_t* ary, size_t size, const char* name);
/** \brief output an uint32_t array into source code as hex values
*
* \param[in] ary the input array
* \param[in] size number of elements in array
* \param[in] name the name of the struct for source code
*
*/
void uint32_array_to_c_hex(const uint32_t* ary, size_t size, const char* name);
/** \brief output a char array into source code
*
* \param[in] ary the input array
* \param[in] size number of elements in array
* \param[in] name the name of the struct for source code
*/
void char_array_to_c(const char* ary, size_t size, const char* name);
#endif