You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
599 B

/** @file uint8toa.h
@author M. P. Hayes, UCECE
@date 21 Nov 2006
@brief 8 bit unsigned int to ASCII conversion.
@defgroup uint8toa 8 bit unsigned int to ASCII conversion
*/
#ifndef UINT8TOA_H
#define UINT8TOA_H
#include "system.h"
/** Convert 8 bit unsigned number to decimal ASCII string. This uses
much less memory than sprintf.
@param num number to convert
@param str pointer to array of at least 4 chars to hold string
@param leading_zeroes non-zero to pad with leading zeroes. */
void uint8toa (uint8_t num, char *str, bool leading_zeroes);
#endif