/*++ /* NAME /* hex_code 3 /* SUMMARY /* encode/decode data, hexadecimal style /* SYNOPSIS /* #include <hex_code.h> /* /* VSTRING *hex_encode(result, in, len) /* VSTRING *result; /* const char *in; /* ssize_t len; /* /* VSTRING *hex_decode(result, in, len) /* VSTRING *result; /* const char *in; /* ssize_t len; /* /* VSTRING *hex_encode_opt(result, in, len, flags) /* VSTRING *result; /* const char *in; /* ssize_t len; /* int flags; /* /* VSTRING *hex_decode_opt(result, in, len, flags) /* VSTRING *result; /* const char *in; /* ssize_t len; /* int flags; /* DESCRIPTION /* hex_encode() takes a block of len bytes and encodes it as one /* upper-case null-terminated string. The result value is /* the result argument. /* /* hex_decode() performs the opposite transformation on /* lower-case, upper-case or mixed-case input. The result /* value is the result argument. The result is null terminated, /* whether or not that makes sense. /* /* hex_encode_opt() enables extended functionality as controlled /* with \fIflags\fR. /* .IP HEX_ENCODE_FLAG_NONE /* The default: a self-documenting flag that enables no /* functionality. /* .IP HEX_ENCODE_FLAG_USE_COLON /* Inserts one ":" between bytes. /* .IP HEX_ENCODE_FLAG_APPEND /* Append output to the buffer. /* .IP HEX_ENCODE_FLAG_LOWERCASE /* Output lowercase characters. /* .PP /* hex_decode_opt() enables extended functionality as controlled /* with \fIflags\fR. /* .IP HEX_DECODE_FLAG_NONE /* The default: a self-documenting flag that enables no /* functionality. /* .IP HEX_DECODE_FLAG_ALLOW_COLON /* Allows, but does not require, one ":" between bytes. /* DIAGNOSTICS /* hex_decode() returns a null pointer when the input contains /* characters not in the hexadecimal alphabet. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA /* /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.