Results 1 to 8 of 8

Thread: 2 questions

  1. #1

    Thread Starter
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I figured there would be too, and I did look in the MSDN, but didn't find anything. Maybe I didn't look hard enough.
    Harry.

    "From one thing, know ten thousand things."

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Have a look at this
    Code:
    isdigit, iswdigit
    
    isdigit returns a non-zero value if c is a decimal digit (0 – 9). iswdigit returns a non-zero value if c is a wide character corresponding to a decimal-digit character. Each of these routines returns 0 if c does not satisfy the test condition.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Here are some else if you are ineterested
    Code:
    isalnum
    
    Alphanumeric (A – Z, a – z, or 0 – 9) 
    
    isalpha
    
    Alphabetic (A – Z or a – z)
    
    __isascii
    
    ASCII character (0x00 – 0x7F)
    
    iscntrl
    
    Control character (0x00 – 0x1F or 0x7F)
    
    __iscsym
    
    Letter, underscore, or digit
    
    __iscsymf
    
    Letter or underscore
    
    isdigit
    
    Decimal digit (0 – 9)
    
    isgraph
    
    Printable character except space ( )
    
    islower
    
    Lowercase letter (a – z)
    
    isprint
    
    Printable character including space (0x20 – 0x7E)
    
    ispunct
    
    Punctuation character
    
    isspace
    
    White-space character (0x09 – 0x0D or 0x20)
    
    isupper
    
    Uppercase letter (A – Z)
    
    isxdigit
    
    Hexadecimal digit (A – F, a – f, or 0 – 9)
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4

    Thread Starter
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Well I get bored easily looking at lists of function names, so I didn't look that hard
    Harry.

    "From one thing, know ten thousand things."

  5. #5
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    It is really funny nobody remembered the isdigit function. I searched the isalpha function to get to the isdigit.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    isn't there a IsCharAlphaNumeric Api Function?

    Yep there is
    http://msdn.microsoft.com/library/ps...rings_4x43.htm

    For some reason I tend to do everything with the API rather than C libraries (altough this eliminates the possibility of cross-platform code, it saves in FileSize)
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Look for TINYCRT on MSDN if you want to keep your file sizes down and you use API most of the time.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Thanks mike, will take a look at it
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width