18 lines
446 B
C
Executable File
18 lines
446 B
C
Executable File
|
|
#ifndef __COMMON_CLIENT_H__
|
|
#define __COMMON_CLIENT_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int string2hex(char* str,char* hex);
|
|
int StringToHex(char *str, unsigned char *out, unsigned int *outlen);
|
|
int arrayToStr(unsigned char *buf, unsigned int buflen, char *out);
|
|
void hex_to_asciistring(unsigned char* str,int size,unsigned char* str1);
|
|
int checksum(unsigned char *data, int length);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|