PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
putStr.c
1 /*
2  * @file putStr.c
3  * Function to print a string to the terminal.
4  *
5  * Copyright (c) 2013, Parallax Inc.
6  * Written by Steve Denson
7  */
8 #include "simpletext.h"
9 
10 int putStr(const char *str)
11 {
12  int n = 0;
13  while(*str) {
14  putChar(*str);
15  str++;
16  n++;
17  }
18  return n;
19 }
20 
21 /*
22 +--------------------------------------------------------------------
23 | TERMS OF USE: MIT License
24 +--------------------------------------------------------------------
25 Permission is hereby granted, free of charge, to any person obtaining
26 a copy of this software and associated documentation files
27 (the "Software"), to deal in the Software without restriction,
28 including without limitation the rights to use, copy, modify, merge,
29 publish, distribute, sublicense, and/or sell copies of the Software,
30 and to permit persons to whom the Software is furnished to do so,
31 subject to the following conditions:
32 
33 The above copyright notice and this permission notice shall be
34 included in all copies or substantial portions of the Software.
35 
36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
40 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
41 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
42 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43 +--------------------------------------------------------------------
44 */
45 
simpletext.h
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
putChar
void putChar(char c)
Print a char to the debug port.
Definition: putChar.c:30
putStr
int putStr(const char *str)
Print string to the debug port.
Definition: putStr.c:10