diff options
author | Werner Koch <wk@gnupg.org> | 2004-01-27 17:40:42 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-01-27 17:40:42 +0100 |
commit | eb24d8b751750cf96cb200f80b45ed3806648883 (patch) | |
tree | e78feb11795ff62728bc443352006ae33e50ec9c /common/util.h | |
parent | * call-scd.c (atfork_cb): New. (diff) | |
download | gnupg2-eb24d8b751750cf96cb200f80b45ed3806648883.tar.xz gnupg2-eb24d8b751750cf96cb200f80b45ed3806648883.zip |
Some minor bug fixes, new test utilities and started support for other
smartcard applications.
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index 80a1d01a6..7e134e846 100644 --- a/common/util.h +++ b/common/util.h @@ -134,13 +134,14 @@ int asprintf (char **result, const char *format, ...) JNLIB_GCC_A_PRINTF(2,3); \v, but works for the purposes used here. */ #define ascii_isspace(a) ((a)==' ' || (a)=='\n' || (a)=='\r' || (a)=='\t') -/* the atoi macros assume that the buffer has only valid digits */ +/* The atoi macros assume that the buffer has only valid digits. */ #define atoi_1(p) (*(p) - '0' ) #define atoi_2(p) ((atoi_1(p) * 10) + atoi_1((p)+1)) #define atoi_4(p) ((atoi_2(p) * 100) + atoi_2((p)+2)) #define xtoi_1(p) (*(p) <= '9'? (*(p)- '0'): \ *(p) <= 'F'? (*(p)-'A'+10):(*(p)-'a'+10)) #define xtoi_2(p) ((xtoi_1(p) * 16) + xtoi_1((p)+1)) +#define xtoi_4(p) ((xtoi_2(p) * 256) + xtoi_2((p)+2)) |