changeset 14211 | 6f76fe84fdee |
parent 14210 | b15014125f67 |
child 14270 | 06f2dc4deab2 |
14210:b15014125f67 | 14211:6f76fe84fdee |
---|---|
356 int i; |
356 int i; |
357 int len = strlen(src); |
357 int len = strlen(src); |
358 char *end; |
358 char *end; |
359 for(i = 0; i < len; i++) |
359 for(i = 0; i < len; i++) |
360 { |
360 { |
361 if((src[i] == 'x') || (src[i] == 'X')){ |
361 if(src[i] == '$'){ |
362 // hex |
362 // hex |
363 return strtol(src + i + 1, &end, 16); |
363 return strtol(src + i + 1, &end, 16); |
364 } |
364 } |
365 } |
365 } |
366 |
366 |