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
gets.c
1
/*
2
* Super-simple text I/O for PropGCC, stripped of all stdio overhead.
3
* Copyright (c) 2012, Ted Stefanik. Concept inspired by:
4
*
5
* very simple printf, adapted from one written by me [Eric Smith]
6
* for the MiNT OS long ago
7
* placed in the public domain
8
* - Eric Smith
9
* Propeller specific adaptations
10
* Copyright (c) 2011 Parallax, Inc.
11
* Written by Eric R. Smith, Total Spectrum Software Inc.
12
*
13
* MIT licensed (see terms at end of file)
14
*/
15
16
#include <limits.h>
17
#include "siodev.h"
18
19
char
* gets(
char
* buf)
20
{
21
return
(safe_gets(buf, INT_MAX));
22
}
23
24
25
/* +--------------------------------------------------------------------
26
* | TERMS OF USE: MIT License
27
* +--------------------------------------------------------------------
28
* Permission is hereby granted, free of charge, to any person obtaining
29
* a copy of this software and associated documentation files
30
* (the "Software"), to deal in the Software without restriction,
31
* including without limitation the rights to use, copy, modify, merge,
32
* publish, distribute, sublicense, and/or sell copies of the Software,
33
* and to permit persons to whom the Software is furnished to do so,
34
* subject to the following conditions:
35
*
36
* The above copyright notice and this permission notice shall be
37
* included in all copies or substantial portions of the Software.
38
*
39
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
43
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
44
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
* +--------------------------------------------------------------------
47
*/
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12