summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/putk.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-16 13:34:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-16 13:34:35 +0000
commitce57509cbd075f55a682c6b8730f1440b03ddf0c (patch)
tree9b7c62bcb1a909b33b300ee64c4255e2ad81d931 /cpukit/libcsupport/src/putk.c
parent2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ce57509cbd075f55a682c6b8730f1440b03ddf0c.tar.bz2
2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk(). * libcsupport/src/putk.c: New file.
Diffstat (limited to 'cpukit/libcsupport/src/putk.c')
-rw-r--r--cpukit/libcsupport/src/putk.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/putk.c b/cpukit/libcsupport/src/putk.c
new file mode 100644
index 0000000000..78d9f2abaf
--- /dev/null
+++ b/cpukit/libcsupport/src/putk.c
@@ -0,0 +1,30 @@
+/*
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/bspIo.h>
+
+/*
+ * putk
+ *
+ * Kernel putk (e.g. puts) function requiring minimal infrastrure.
+ */
+void putk(const char *s)
+{
+ const char *p = s;
+
+ for (p=s ; *p ; p++ )
+ BSP_output_char(*p);
+ BSP_output_char('\n');
+}