18 lines
446 B
C
Raw Normal View History

2025-05-14 11:26:23 +08:00
#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