#include "config.h"#include "ascii.h"
Go to the source code of this file.
Functions | |
| U8 | ascii_to_bin (U8 c) |
| This function returns the binary value of an ascii digit. | |
| U8 | bin_to_ascii (U8 c) |
| This function returns the ascii value of a quartet. | |
This function returns the binary value of an ascii digit.
| none |
Definition at line 34 of file ascii.c.
Referenced by convert_param1(), and convert_param2().
00035 { 00036 if (c>='a') return(c-('a'-0x0A)); 00037 if (c>='A') return(c-('A'-0x0A)); 00038 return(c-'0'); 00039 }
This function returns the ascii value of a quartet.
| none |
Definition at line 49 of file ascii.c.
Referenced by print_hex16().
1.5.7.1