Closed krmpotic closed 4 years ago
While I don't think this change will cause a problem, I also don't think it should be necessary. What error are you seeing?
Parsing of this value should be done with strtoul() with base=0 which understands decimal or '0x' prefixed hex.
strtoul()
https://github.com/epics-modules/mrfioc2/blob/3c60a241f7a0326bd1280d177fcc03f8d263cf5e/mrfCommon/src/linkoptions.c#L60
You are right, this is unnecessary. For some reason during testing I though it didn't work the other way. I tested again and it works both ways.
While I don't think this change will cause a problem, I also don't think it should be necessary. What error are you seeing?
Parsing of this value should be done with
strtoul()
with base=0 which understands decimal or '0x' prefixed hex.https://github.com/epics-modules/mrfioc2/blob/3c60a241f7a0326bd1280d177fcc03f8d263cf5e/mrfCommon/src/linkoptions.c#L60