129 uint8_t front_pad_skip = 1;
130 uint8_t str_val[8] = { 0,0,0,0,0,0,0,0 };
133 for( i=0 ; i<8 ; i++ )
135 str_val[i] = (uint8_t) ( ( val >> (4*(7-i)) ) & 0xF ) ;
136 str_val[i] += ( str_val[i] > 9 ) ? ( 65 - 10 ) : 48 ;
144 if( front_pad_skip && str_val[i] ==
'0' && i != 7)
158 str_val[0] = (uint8_t) ( val + 48 );
159 else if ( val < 100 )
161 str_val[0] = (uint8_t) ( val/10 + 48 );
162 str_val[1] = (uint8_t) ( val%10 + 48 );
164 else if ( val < 1000 )
166 str_val[0] = (uint8_t) ( val/100 + 48 );
167 str_val[1] = (uint8_t) ( (val%100)/10 + 48 );
168 str_val[2] = (uint8_t) ( (val%100)%10 + 48 );
170 else if ( val < 10000 )
172 str_val[0] = (uint8_t) ( val/1000 + 48 );
173 str_val[1] = (uint8_t) ( (val%1000)/100 + 48 );
174 str_val[2] = (uint8_t) ( ((val%1000)%100)/10 + 48 );
175 str_val[3] = (uint8_t) ( ((val%1000)%100)%10 + 48 );
177 else if (val < 100000 )
179 str_val[0] = (uint8_t) ( val/10000 + 48 );
180 str_val[1] = (uint8_t) ( (val%10000)/1000 + 48 );
181 str_val[2] = (uint8_t) ( ((val%10000)%1000)/100 + 48 );
182 str_val[3] = (uint8_t) ( (((val%10000)%1000)%100)/10 + 48 );
183 str_val[4] = (uint8_t) ( (((val%10000)%1000)%100)%10 + 48 );
229 while(
string[i] != 0 && i < 255 )