summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/puts.c
blob: b5ed3d2bb06bf664e15b51de3de2d59c80c19eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

#include "c99ppe.h"

#ifndef _REENT_ONLY

int
_DEFUN (puts, (s),
	char _CONST * s)
{
  CHECK_STD_INIT(_REENT);

  /* The return value gets written over s
   */
  __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTS, &s);

  return (int)s;
}

#endif /* ! _REENT_ONLY */