Newer
Older
rtlibc / src / stdio_internal.h
/* Copyright (C) Thornwave Labs Inc - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * Written by Razvan Turiac <razvan.turiac@thornwave.com>
 */

#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