EmbeddedEtcher
Functions
helpers.c File Reference
#include "stm32f10x.h"
#include "helpers.h"
#include "error.h"
#include <stdlib.h>
Include dependency graph for helpers.c:

Functions

uint8_t osItoa (int iint, char *iochar, size_t ibuffsize, size_t *obuffsize)
 

Function Documentation

◆ osItoa()

uint8_t osItoa ( int  iint,
char *  iochar,
size_t  ibuffsize,
size_t *  obuffsize 
)

Simple Interger to ASCII conversion.

Parameters
iintInput integer.
iocharC string where the result ends up.
ibuffsizeSize of the C string for security reasons.
obuffsizeSize of the string created by the function.
Return values
1(SUCCESS) or 0 (buffer overflow).