It's just a different style of ensuring it's a number, I suppose. I saw this style in an example years ago and have been doing it this way for a while. I don't know if there's any either advantage either way.
From Eric Oulashin to GitLab note in main/sbbs on Thu Feb 9 15:46:11 2023
Yep. In this block of code, I did a regex test to make sure argv[1] is all digits, so that I'd be able to expect it could be cast to a number successfully.
Who's Online
Recent Visitors
Guest
Sat May 4 12:39:23 2024
from
Europe
via
Telnet
Chris Jacobs
Sat May 4 11:07:27 2024
from
Almere Netherlands
via
Telnet
David Murray
Sat May 4 10:37:59 2024
from
Kennedale, Tx
via
Raw
Xbit
Sat May 4 10:17:30 2024
from
Hillsboro, Or
via
SSH