ConvertDataTypes.comConvert data types programming in one click !

Convert char* to unsigned char in C

    36279 hits
  • char * vIn = "0";
  • unsigned char vOut = (unsigned char)strtol(vIn,NULL,10);