Define integer ranges in C

Posted by maddy on Stack Overflow See other posts from Stack Overflow or by maddy
Published on 2010-04-14T12:09:26Z Indexed on 2010/04/14 12:13 UTC
Read the original article Hit count: 251

Filed under:
|

Hi, I want to define a type named Int_1_100_Type which is an integer variable in the range from 1 to 100. How should i typedef this one? for eg: i am passing this variable to a function which accepts variable of type Int_1_100_Type. i.e funca(Int_1_100_Type Var1)

Thanks Maddy

© Stack Overflow or respective owner

Related posts about c

    Related posts about typedef