#include <inttypes.h>
Include dependency graph for xstrtol.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | XSTRTOL_H_ 1 |
#define | PARAMS(Args) () |
#define | _DECLARE_XSTRTOL(name, type) |
#define | _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) |
#define | STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) _STRTOL_ERROR (2, Str, Argument_type_string, Err) |
#define | STRTOL_FAIL_WARN(Str, Argument_type_string, Err) _STRTOL_ERROR (0, Str, Argument_type_string, Err) |
Typedefs | |
typedef enum strtol_error | strtol_error |
Enumerations | |
enum | strtol_error { LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW } |
|
|
|
|
|
Value: strtol_error \ name PARAMS ((const char *s, char **ptr, int base, \ type *val, const char *valid_suffixes)); |
|
Value: do \ { \ switch ((Err)) \ { \ case LONGINT_OK: \ abort (); \ \ case LONGINT_INVALID: \ error ((Exit_code), 0, "invalid %s `%s'", \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_INVALID_SUFFIX_CHAR: \ error ((Exit_code), 0, "invalid character following %s `%s'", \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_OVERFLOW: \ error ((Exit_code), 0, "%s `%s' too large", \ (Argument_type_string), (Str)); \ break; \ } \ } \ while (0) |
|
|
|
|
|
|
|
00018 { 00019 LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW 00020 }; |