All of sudden, we realised that we had plenty of 'strtoul' that weren't checking they were actually receiving a number as argument. So we went for fixes and have a few more conditions that could trigger an exception.
If instead you suggest to go for stringstream
, remember: it will expect either '.' or ',' depending on the value of LC_NUMERIC
... Maybe it isn't that bad I'm using mostly sscanf()
in GEDS code :P Well, as long as I remember not to use %i when I mean %d, that is.
Thursday, December 06, 2018
strtrololol
Tags: cxx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment