forked from launchdarkly/c-server-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhexify.patch
More file actions
36 lines (28 loc) · 1.2 KB
/
Copy pathhexify.patch
File metadata and controls
36 lines (28 loc) · 1.2 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
diff --git a/hexify.c b/hexify.c
index 36f76cc..e5c56db 100644
--- a/hexify.c
+++ b/hexify.c
@@ -10,7 +10,7 @@
int hexify(unsigned char *in, size_t in_size, char *out, size_t out_size)
{
- // originally inspired by http://stackoverflow.com/a/12839870/558735
+ /* originally inspired by http://stackoverflow.com/a/12839870/558735 */
if (in_size == 0 || out_size == 0) return 0;
diff --git a/hexify.h b/hexify.h
index 8681f9c..9cd74d1 100644
--- a/hexify.h
+++ b/hexify.h
@@ -8,13 +8,13 @@
#ifndef HEXIFY_H
#define HEXIFY_H
-#include <stddef.h> // size_t, etc.
+#include <stddef.h> /* size_t, etc. */
-// translate the binary data from 'in' as a hexidecimal string into 'out'.
-// 'out_size' is the size of 'out' (including room for the trailing '\0').
-// returns the number of hexidecimal bytes written (not including the trailing '\0').
+/* translate the binary data from 'in' as a hexidecimal string into 'out'.
+ * 'out_size' is the size of 'out' (including room for the trailing '\0').
+ * returns the number of hexidecimal bytes written (not including the trailing '\0'). */
int hexify(unsigned char *in, size_t in_size, char *out, size_t out_size);
-#endif // HEXIFY_H
+#endif /* HEXIFY_H */