FreeBSD/sys/contrib/dev/acpica/compiler/dtutils.c
/******************************************************************************
 *
 * FUNCTION:    DtGetBufferLength
 *
 * PARAMETERS:  Buffer              - List of integers,
 *                                    for example "10 3A 4F 2E"
 *
 * RETURN:      Count of integer
 *
 * DESCRIPTION: Get length of bytes needed to store the integers
 *
 *****************************************************************************/
DtGetBufferLength
PARAMETERS:  Buffer              - List of integers,
for example "10 3A 4F 2E"

Count of integer

Get length of bytes needed to store the integers
DtGetBufferLength PARAMETERS : Buffer - List of integers for example " 10 3A 4F 2E " Count of integer Get length of bytes needed to store the integers
UINT32
DtGetBufferLength (
    char                    *Buffer)
{
    UINT32                  ByteLength = 0;
    while (*Buffer)
    {
        if (*Buffer == ' ')
        {
            ByteLength++;
            while (*Buffer == ' ')
            {
                Buffer++;
            }
        }
        Buffer++;
    }
    return (++ByteLength);
}
UINT32 DtGetBufferLength ( char * Buffer ) { UINT32 ByteLength = 0 ; while ( * Buffer ) { if ( * Buffer == ' ' ) { ByteLength ++ ; while ( * Buffer == ' ' ) { Buffer ++ ; } } Buffer ++ ; } return ( ++ ByteLength ) ; }
FUNCTION:    DtGetBufferLength
 PARAMETERS:  Buffer              - List of integers,
                                    for example "10 3A 4F 2E"
FUNCTION : DtGetBufferLength PARAMETERS : Buffer - List of integers for example " 10 3A 4F 2E "