Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GET_NUM_H
- #define GET_NUM_H
- #define GN_NONNEG 01 /* Value must be >= 0 */
- #define GN_GT_0 02 /* Value must be > 0 */
- #define GN_ANY_BASE 0100 /* By default, integers are decimal. Can use any base */
- #define GN_BASE_8 0200 /* Value is expressed in octal */
- #define GN_BASE_16 0400 /* Value is expressed in hexadecimal */
- long getLong(const char *arg, int flags, const char *name);
- int getInt(const char *arg, int flags, const char *name);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement