PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
TextDevices
libsimpletext
sprinti.c
1
/*
2
* very simple printf, adapted from one written by me
3
* for the MiNT OS long ago
4
* placed in the public domain
5
* - Eric Smith
6
*/
7
#include <stdarg.h>
8
#include "
simpletext.h
"
9
10
int
sprinti
(
char
*buf,
const
char
*fmt, ...)
11
{
12
va_list args;
13
int
r;
14
va_start(args, fmt);
15
r = _intsprnt(fmt, args, buf);
16
va_end(args);
17
return
r;
18
}
19
20
/* +--------------------------------------------------------------------
21
* | TERMS OF USE: MIT License
22
* +--------------------------------------------------------------------
23
* Permission is hereby granted, free of charge, to any person obtaining
24
* a copy of this software and associated documentation files
25
* (the "Software"), to deal in the Software without restriction,
26
* including without limitation the rights to use, copy, modify, merge,
27
* publish, distribute, sublicense, and/or sell copies of the Software,
28
* and to permit persons to whom the Software is furnished to do so,
29
* subject to the following conditions:
30
*
31
* The above copyright notice and this permission notice shall be
32
* included in all copies or substantial portions of the Software.
33
*
34
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
37
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
38
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
39
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
40
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41
* +--------------------------------------------------------------------
42
*/
43
simpletext.h
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
sprinti
int int int int int sprinti(char *buffer, const char *format,...) __attribute__((format(printf
Print integer and char only format "..." args to the default simple terminal device....
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17