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
Chris Jacobs
Thu May 2 23:27:50 2024
from
Almere Netherlands
via
Telnet
Drumnfreak
Thu May 2 22:56:37 2024
from
Kansas City
via
Telnet
Drumnfreak
Thu May 2 22:55:31 2024
from
Kansas City
via
Telnet