Advertisement
rfmonk

get_num.h

Dec 26th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #ifndef GET_NUM_H
  2. #define GET_NUM_H
  3.  
  4. #define GN_NONNEG       01      /* Value must be >= 0 */
  5. #define GN_GT_0         02      /* Value must be > 0 */
  6. #define GN_ANY_BASE     0100    /* By default, integers are decimal. Can use any base */
  7. #define GN_BASE_8       0200    /* Value is expressed in octal */
  8. #define GN_BASE_16      0400    /* Value is expressed in hexadecimal */
  9.  
  10. long getLong(const char *arg, int flags, const char *name);
  11.  
  12. int getInt(const char *arg, int flags, const char *name);
  13.  
  14. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement