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
Ted
Tue Sep 10 11:36:54 2024
from
Va
via
SSH
Massacre
Tue Sep 10 10:53:03 2024
from
Rochester, Ny
via
Telnet
Eino
Tue Sep 10 10:03:14 2024
from
Finland
via
Telnet
Chris Jacobs
Tue Sep 10 09:49:36 2024
from
Almere Netherlands
via
Telnet