# MB_CommGetChildrenNumber

## Syntax

  `#include <nitro/mb.h>`
  `u8 MB_CommGetChildrenNumber(void);
  `

## Arguments

None.

## Return Values

This function returns the number of children connected to the current parent.

## Description

This function returns the number of children connected to the current parent. The value of `MB_CommGetChildrenNumber` is equal to the number of children with the state `MB_COMM_PSTATE_REQ_ACCEPTED` (as opposed to `MB_COMM_PSTATE_DISCONNECTED`).
Note: that there is approximately a 4-second delay before the parent detects an unexpected end of communication with a child and changes the state to `MB_COMM_PSTATE_DISCONNECTED`.

## See Also

`MBCommPState
MB_CommGetParentState
MB_CommGetChildUser
MB_StartParent
MB_End`

## Revision History

2004/10/21 Corrected the description, which was not updated since NITRO-SDK 2.0 PR5.
2004/09/10 Revised description.
2004/08/09 Initial version.

CONFIDENTIAL