Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


test digits for "string" datatype

This topic is 6670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You should be able to access every single char from the string data type and test it with the isdigit macro. Hope this helps.

That's just my 200 bucks!


Share this post

Link to post
Share on other sites
If you want your string to be treated as a regular C string you have to use .cstr();

so try your isdigit on number.cstr()

Edited by - SoGreen on July 17, 2000 5:49:52 PM

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!