Mon 16 Mar 11:09:06 CET 2026
This commit is contained in:
parent
3725ba9c13
commit
5f8d72f1d2
23
src/printf.h
Normal file
23
src/printf.h
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef _PRINTF_H
|
||||||
|
#define _PRINTF_H
|
||||||
|
|
||||||
|
#include "types.h"
|
||||||
|
/*
|
||||||
|
Set standard output channel (default 1)
|
||||||
|
*/
|
||||||
|
index_t print_stdout(index_t handle);
|
||||||
|
|
||||||
|
void print_char(char c);
|
||||||
|
void print_int(int n);
|
||||||
|
void print_uint_hex(int n);
|
||||||
|
void print_uint(unsigned int n);
|
||||||
|
int print_array(number_t *s, index_t len);
|
||||||
|
int print_string(char *s);
|
||||||
|
void print_number(number_t x);
|
||||||
|
void print_format(char *format, ...);
|
||||||
|
char* sprint_int(char *buf, int i);
|
||||||
|
// buffer version supporting up and down growing cyclic buffers
|
||||||
|
int bprint_char(char *buf, int off, int size, int dir, char c);
|
||||||
|
int bprint_int(char *buf, int off, int size, int dir, int i);
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user