字符串“1121“转换成整型1121
#include
#include
void CharToInt(int *dest, char *src, long...len);
int main(void)
{
unsigned char *str = "1121";
int value, str_len;...value,str,str_len);
printf("%d\n",value);
}
/*转换后数值的地址,传入的字符串,字符串长度*/
void CharToInt(int *dest, char...#include
#define HIGH 0
#define LOW 1
void CharToInt(int *, char *, long , int );
int main...#include
union CharInt
{
unsigned char str[2];
short int value;
};
int