/*******************************************
*
* Quiz6 - copy the variables x and y into the buffer
*         that is pointed to by buf2.
*         complete Lines numbered 1-4 in the test() routine
* 
*  int bufSize = 8;
*  char *buf2 = malloc(bufSize);
*  uint32_t x = 0x01020304;
*  uint16_t y = 0x0506;
*  void *dstPtr = buf2;
*  uint32_t *tmpPtr1 = ?
*  uint16_t *tmpPtr2 = ?
*  printf("test: values of pointers:  tmpPtr1:%d, tmpPtr2:%d \n",(int)tmpPtr1,(int)tmpPtr2);
*  *tmpPtr1 = ?
*  *tmpPtr2 = ? 
*

*
*
********************************************/

void test ()
{
  int bufSize = 8;
  char *buf2 = malloc(bufSize);
  uint32_t x = 0x01020304;
  uint16_t y = 0x0506;

  void *dstPtr = buf2;

  //Place x and y in network byte order into buf2 
  uint32_t *tmpPtr1 = ? 
  uint16_t *tmpPtr2 = ?

  *tmpPtr1 =  ?
  *tmpPtr2 =  ?
}





