Changeset 72 in libcf for trunk/src/cf_codec.c
- Timestamp:
- 04/15/13 10:02:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_codec.c
r68 r72 17 17 #define IS_UPPERCASE(x) (x >= 'A' && x <= 'F') 18 18 19 typedef unsigned char __uchar; 20 19 21 /** 20 22 * 바이너리 데이터를 16진수 문자열로 변환 … … 33 35 char * hex) 34 36 { 35 size_t iter = 0;36 size_t count = len * 2 + 1;37 size_t iter = 0; 38 size_t count = len * 2 + 1; 37 39 38 c har hexchar[] = {'0', '1', '2', '3',39 '4', '5', '6', '7',40 '8', '9', 'a', 'b',41 'c', 'd', 'e', 'f'};40 const char hexchar[] = {'0', '1', '2', '3', 41 '4', '5', '6', '7', 42 '8', '9', 'a', 'b', 43 'c', 'd', 'e', 'f'}; 42 44 43 const unsignedchar * ptr = bin;45 const __uchar * ptr = bin; 44 46 45 47 ASSERT_ARGS (bin == NULL); … … 72 74 size_t * len) 73 75 { 74 typedef unsigned char __uchar;75 76 76 int result = 0; 77 77
Note:
See TracChangeset
for help on using the changeset viewer.