PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
TextDevices
libsimpletext
dprint.c
1
/*
2
* Super-simple text I/O for PropGCC, stripped of all stdio overhead.
3
* Copyright (c) 2013, Parallax Inc
4
* MIT licensed (see terms at end of file)
5
*/
6
#include <stdlib.h>
7
#include "simpletext.h"
8
9
int
dprint(
text_t
*device,
const
char
*fmt, ...)
10
{
11
char
buf[256];
12
va_list args;
13
int
r;
14
va_start(args, fmt);
15
r = _dosprnt(fmt, args, buf);
16
va_end(args);
17
writeStr(device, buf);
18
return
r;
19
}
20
21
/* +--------------------------------------------------------------------
22
* | TERMS OF USE: MIT License
23
* +--------------------------------------------------------------------
24
* Permission is hereby granted, free of charge, to any person obtaining
25
* a copy of this software and associated documentation files
26
* (the "Software"), to deal in the Software without restriction,
27
* including without limitation the rights to use, copy, modify, merge,
28
* publish, distribute, sublicense, and/or sell copies of the Software,
29
* and to permit persons to whom the Software is furnished to do so,
30
* subject to the following conditions:
31
*
32
* The above copyright notice and this permission notice shall be
33
* included in all copies or substantial portions of the Software.
34
*
35
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
38
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
39
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
40
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42
* +--------------------------------------------------------------------
43
*/
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:70
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12