summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests/sp13/putbuff.c
blob: 70b23ff72f0f95300394269949ac22abeb94cc7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*  Put_buffer
 *
 *  This test routine prints the given buffer.
 *  buffer.
 *
 *  Input parameters:
 *    buffer - pointer to message buffer to be printer
 *
 *  Output parameters:  NONE
 *
 *  COPYRIGHT (c) 1989-1999.
 *  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.OARcorp.com/rtems/license.html.
 *
 *  $Id$
 */

#include "system.h"

#define MESSAGE_SIZE (4)

void Put_buffer(
  long *buffer
)
{
  int i;
/*
  printf( "%16s", (char *)buffer );
*/
  for ( i=0 ; i< MESSAGE_SIZE ; i++ ) {
    printf( "%c%c%c%c", (char) (buffer[i] >> 24),
                        (char) (buffer[i] >> 16 & 0xff),
                        (char) (buffer[i] >> 8 & 0xff),
                        (char) (buffer[i] >> 0 & 0xff) );
  }

}