==Description of the Functions related to different pointers==
 
==Description of the Functions related to different pointers==
 
===void *packetbuf_dataptr(void)===
 
===void *packetbuf_dataptr(void)===
{
+
<source lang="c">
 
   return (void *)(&packetbuf[bufptr + PACKETBUF_HDR_SIZE]);
 
   return (void *)(&packetbuf[bufptr + PACKETBUF_HDR_SIZE]);
}
+
</source>
/*---------------------------------------------------------------------------*/
+
 
===void *packetbuf_hdrptr(void)===
 
===void *packetbuf_hdrptr(void)===
{
+
<source lang="c">
 
   return (void *)(&packetbuf[hdrptr]);
 
   return (void *)(&packetbuf[hdrptr]);
}
+
</source>
/*---------------------------------------------------------------------------*/
+
 
===void packetbuf_reference(void *ptr, uint16_t len)===
 
===void packetbuf_reference(void *ptr, uint16_t len)===
{
+
<source lang="c">
 
   packetbuf_clear();
 
   packetbuf_clear();
 
   packetbufptr = ptr;
 
   packetbufptr = ptr;
 
   buflen = len;
 
   buflen = len;
}
+
</source>
/*---------------------------------------------------------------------------*/
+
 
===int packetbuf_is_reference(void) ===
 
===int packetbuf_is_reference(void) ===
{
+
<source lang="c">
 
   return packetbufptr != &packetbuf[PACKETBUF_HDR_SIZE];
 
   return packetbufptr != &packetbuf[PACKETBUF_HDR_SIZE];
Exception encountered, of type "Error"