/* Put_buffer
|
/* Put_buffer
|
*
|
*
|
* This test routine prints the given buffer.
|
* This test routine prints the given buffer.
|
* buffer.
|
* buffer.
|
*
|
*
|
* Input parameters:
|
* Input parameters:
|
* buffer - pointer to message buffer to be printer
|
* buffer - pointer to message buffer to be printer
|
*
|
*
|
* Output parameters: NONE
|
* Output parameters: NONE
|
*
|
*
|
* COPYRIGHT (c) 1989-1999.
|
* COPYRIGHT (c) 1989-1999.
|
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
*
|
*
|
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
* found in the file LICENSE in this distribution or at
|
* found in the file LICENSE in this distribution or at
|
* http://www.OARcorp.com/rtems/license.html.
|
* http://www.OARcorp.com/rtems/license.html.
|
*
|
*
|
* $Id: putbuff.c,v 1.2 2001-09-27 12:02:32 chris Exp $
|
* $Id: putbuff.c,v 1.2 2001-09-27 12:02:32 chris Exp $
|
*/
|
*/
|
|
|
#include "system.h"
|
#include "system.h"
|
|
|
#define MESSAGE_SIZE (4)
|
#define MESSAGE_SIZE (4)
|
|
|
void Put_buffer(
|
void Put_buffer(
|
long *buffer
|
long *buffer
|
)
|
)
|
{
|
{
|
int i;
|
int i;
|
/*
|
/*
|
printf( "%16s", (char *)buffer );
|
printf( "%16s", (char *)buffer );
|
*/
|
*/
|
for ( i=0 ; i< MESSAGE_SIZE ; i++ ) {
|
for ( i=0 ; i< MESSAGE_SIZE ; i++ ) {
|
printf( "%c%c%c%c", (char) (buffer[i] >> 24),
|
printf( "%c%c%c%c", (char) (buffer[i] >> 24),
|
(char) (buffer[i] >> 16 & 0xff),
|
(char) (buffer[i] >> 16 & 0xff),
|
(char) (buffer[i] >> 8 & 0xff),
|
(char) (buffer[i] >> 8 & 0xff),
|
(char) (buffer[i] >> 0 & 0xff) );
|
(char) (buffer[i] >> 0 & 0xff) );
|
}
|
}
|
|
|
}
|
}
|
|
|