Newer
Older
rtlibc / src / stdio_internal.h
@Razvan Turiac Razvan Turiac on 19 Dec 2019 346 bytes Improved code.
#ifndef _STDIO_INTERNAL_H
#define _STDIO_INTERNAL_H

#include <stdint.h>
#include <stddef.h>


typedef struct
{
	char *ptr;
	size_t len;
}string_descriptor_t;



#define OUTPUT_CHARS(user, message, size) \
{\
	const int32_t rv_temp = output_handler(user, message, size);\
	if (rv_temp < 0)\
		return rv_temp;\
	else\
		rv += rv_temp;\
}

#endif