changeset 14210 | b15014125f67 |
parent 14189 | 5c6f947c342c |
child 14211 | 6f76fe84fdee |
14209:3b83ec44e10b | 14210:b15014125f67 |
---|---|
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] == '$'){ |
361 if((src[i] == 'x') || (src[i] == 'X')){ |
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 |