3 ms·
Not sure. I suppose I could add a style or coding convention guide somewhere in the repo to code that may seem confusing initially. Basic rules are: return val
by chjj 5y ago
Not sure. I suppose I could add a style or coding convention guide somewhere in the repo to code that may seem confusing initially.
Basic rules are: return values on the left side of params, and functions generally return a boolean for success or failure.
The function you mention is parsing a fixed-point integer string (from a json string) and returning an int64_t. It will return 0 if it's not a syntactically valid integer, or if there is some kind of overflow, etc.