--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote: > > Hi Bruce, > > I notice in your plugin code, where you're expecting something like an HWND, > you tend to use strtoul, not atol.
No, it's just thoughtless habit. Sometimes I want the returned pointer for syntax checking -- was the whole string eaten as a number so that returned pointer should point to '\-0'. So I just got into the habit of using it. Main reason I can see for doing that is that one might be seeing hex, in particular leading 0x. But as you're normally using it to convert an incoming it's coming in via an argument, e.g., *(szargs+3), I assume even if user had typed > 0x0FB it would already have been converted to a number internally, than back > into a string for sending to plugin? Or are you thinking user might have > called with "0x0FB", which I suppose might stay a string and never get > converted? No, never even thought about above. You are right above conversion of 0xhhh and "0xhhh" is not supposed to work as a hex number. >
