netmsgs/libnetmsgs/nmLibUtils.c
const NMFieldDef_T *nmFindFieldDef(const NMMsgDef_T *pMsgDef, byte_t byFId)
{
  size_t  i;

  for(i=0; i<pMsgDef->m_uCount; ++i)
  { 
    if( pMsgDef->m_pFields[i].m_eFId == byFId )
    {
      return &(pMsgDef->m_pFields[i]);
    }
  }

  return NULL;
}
/*!
 * \brief Find the field definition in the message definition,
 * given the field id.
 *
 * \param pMsgDef   Pointer to message definition.
 * \param byFId     Field Id.
 *
 * \return If the field definition is found, then the pointer to the
 * field definition is returned. Else NULL is return.
 */
\brief Find the field definition in the message definition,
given the field id.

\param pMsgDef   Pointer to message definition.
\param byFId     Field Id.

\return If the field definition is found, then the pointer to the
field definition is returned. Else NULL is return.
\ brief Find the field definition in the message definition given the field id . \ param pMsgDef Pointer to message definition . \ param byFId Field Id . \ return If the field definition is found then the pointer to the field definition is returned . Else NULL is return .
const NMFieldDef_T *nmFindFieldDef(const NMMsgDef_T *pMsgDef, byte_t byFId)
{
  size_t  i;
  for(i=0; i<pMsgDef->m_uCount; ++i)
  { 
    if( pMsgDef->m_pFields[i].m_eFId == byFId )
    {
      return &(pMsgDef->m_pFields[i]);
    }
  }
  return NULL;
}
const NMFieldDef_T * nmFindFieldDef ( const NMMsgDef_T * pMsgDef , byte_t byFId ) { size_t i ; for ( i = 0 ; i < pMsgDef -> m_uCount ; ++ i ) { if ( pMsgDef -> m_pFields [ i ] . m_eFId == byFId ) { return & ( pMsgDef -> m_pFields [ i ] ) ; } } return NULL ; }
\brief Find the field definition in the message definition,
 given the field id.
\ brief Find the field definition in the message definition given the field id .