print.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
extern uint8_t print_error;
#define PRINT_ERROR_NONE 0
#define PRINT_ERROR_MALFORMED 0x1
#define PRINT_ERROR_UNSUPPORTED 0x2
#define PRINT_ERROR_MAX 0x04
#define PRINT_ERROR_TRUNCATED 0x08
size_t putc(char c);
size_t printf(const char* format, ...);
size_t snprintf(char* str, size_t size, const char* format, ...);
printf
size_t printf(const char *format,...)
print format string on user output
Definition: print.c:448
snprintf
size_t snprintf(char *str, size_t size, const char *format,...)
print format string on string or user output
Definition: print.c:458
print_error
uint8_t print_error
flags to indicate which error(s) occurred within printf or snprintf
Definition: print.c:30