19 static void (*out)(uint8_t);
34 while((buffer[i] !=
'\0') && i < 125){
37 number += buffer[i]-48;
61 while((buffer[i] !=
'\0') && i < 125){
64 number += buffer[i]-48;
81 uint8_t pointLocation = 127;
89 while((buffer[i] !=
'\0') && i < 125){
99 number += buffer[i]-48;
114 for(int8_t j = 0; j < (i - pointLocation - 1); j++){
151 out((uint8_t)(x/10) + 48);
157 out((uint8_t)(x/100) + 48);
159 out((uint8_t)(x/10) + 48);
180 uint16_t top = 10000;
194 out((uint8_t)(mod+48));
219 uint32_t top = 1000000000;
234 out((uint8_t)(mod+48));
266 int32_t intpart = (int32_t)x;
267 float decpart = x - intpart;
277 out((uint8_t)decpart + 48);
278 decpart -= (uint8_t)decpart;
void printl_u8(uint8_t x)
Send a unsigned byte plus a new line to the output stream. Implemented internally.
void printl_c(char x)
Send a character plus a new line to the output stream. Implemented internally.
float str2float(char *buffer)
Convert a null terminated string to a float.
void printc_32(int32_t x)
Send a signed integer plus a comma to the output stream. Implemented internally.
void printl_16(int16_t x)
Send a signed short plus a new line to the output stream. Implemented internally. ...
void printt_8(int8_t x)
Send a signed byte plus a tab to the output stream. Implemented internally.
void printt_u8(uint8_t x)
Send a unsigned byte plus a tab to the output stream. Implemented internally.
void STRING11_setOutput(void(*out_fun)(uint8_t))
Set the target output stream for print functions.
void print_u16(uint16_t x)
Send a unsigned short to the output stream. Implemented internally.
void(* v_fp_u8)(uint8_t)
Function pointer typedef for void function with uint8_t parameter.
v_fp_u8 STRING11_getOutput(void)
Get the current target output stream.
void printt_u16(uint16_t x)
Send a unsigned short plus a tab to the output stream. Implemented internally.
void print_16(int16_t x)
Send a signed short to the output stream. Implemented internally.
void printc_u16(uint16_t x)
Send a unsigned short plus a comma to the output stream. Implemented internally.
void print_c(char x)
Send a character to the output stream. Implemented internally.
void printt_u32(uint32_t x)
Send a unsigned integer plus a tab to the output stream. Implemented internally.
Header file for C11 string library.
void printl_f(float x)
Send a float plus a new line to the output stream. Implemented internally.
void printt_f(float x)
Send a float plus a tab to the output stream. Implemented internally.
void prints_8(int8_t x)
Send a signed byte plus a space to the output stream. Implemented internally.
void printl_u32(uint32_t x)
Send a unsigned integer plus a new line to the output stream. Implemented internally.
int32_t str2int(char *buffer)
Convert a null terminated string to an integer.
void printt_c(char x)
Send a character plus a tab to the output stream. Implemented internally.
void printt_32(int32_t x)
Send a signed integer plus a tab to the output stream. Implemented internally.
void print_32(int32_t x)
Send a signed integer to the output stream. Implemented internally.
void printt_s(char *x)
Send a string literal plus a tab to the output stream. Implemented internally.
void prints_16(int16_t x)
Send a signed short plus a space to the output stream. Implemented internally.
void prints_u8(uint8_t x)
Send a unsigned byte plus a space to the output stream. Implemented internally.
void printc_u32(uint32_t x)
Send a unsigned integer plus a comma to the output stream. Implemented internally.
void print_u8(uint8_t x)
Send a unsigned byte to the output stream. Implemented internally.
void prints_u32(uint32_t x)
Send a unsigned integer plus a space to the output stream. Implemented internally.
void printl_s(char *x)
Send a string literal plus a new line to the output stream. Implemented internally.
void print_f(float x)
Send a float to the output stream. Implemented internally.
void prints_u16(uint16_t x)
Send a unsigned short plus a space to the output stream. Implemented internally.
#define MAX_DEC
Maximum number of decimal places a float will contain.
void printc_f(float x)
Send a float plus a comma to the output stream. Implemented internally.
void prints_f(float x)
Send a float plus a space to the output stream. Implemented internally.
void prints_s(char *x)
Send a string literal plus a space to the output stream. Implemented internally.
void printl_u16(uint16_t x)
Send a unsigned short plus a new line to the output stream. Implemented internally.
void printl_8(int8_t x)
Send a signed byte plus a new line to the output stream. Implemented internally.
void print_s(char *x)
Send a string literal to the output stream. Implemented internally.
void print_8(int8_t x)
Send a signed byte to the output stream. Implemented internally.
void printc_8(int8_t x)
Send a signed byte plus a comma to the output stream. Implemented internally.
uint32_t str2uint(char *buffer)
Convert a null terminated string to an unsigned integer.
void prints_32(int32_t x)
Send a signed integer plus a space to the output stream. Implemented internally.
void printc_16(int16_t x)
Send a signed short plus a comma to the output stream. Implemented internally.
void prints_c(char x)
Send a character plus a space to the output stream. Implemented internally.
void print_u32(uint32_t x)
Send a unsigned integer to the output stream. Implemented internally.
void printl_32(int32_t x)
Send a signed integer plus a new line to the output stream. Implemented internally.
void printc_c(char x)
Send a character plus a comma to the output stream. Implemented internally.
void printc_s(char *x)
Send a string literal plus a comma to the output stream. Implemented internally.
void printt_16(int16_t x)
Send a signed short plus a tab to the output stream. Implemented internally.
void printc_u8(uint8_t x)
Send a unsigned byte plus a comma to the output stream. Implemented internally.