FreeBSD/sys/contrib/dev/acpica/components/utilities/utascii.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiUtValidNameseg
 *
 * PARAMETERS:  Name            - The name or table signature to be examined.
 *                                Four characters, does not have to be a
 *                                NULL terminated string.
 *
 * RETURN:      TRUE if signature is has 4 valid ACPI characters
 *
 * DESCRIPTION: Validate an ACPI table signature.
 *
 ******************************************************************************/
AcpiUtValidNameseg
PARAMETERS:  Name            - The name or table signature to be examined.
Four characters, does not have to be a
NULL terminated string.

TRUE if signature is has 4 valid ACPI characters

Validate an ACPI table signature.
AcpiUtValidNameseg PARAMETERS : Name - The name or table signature to be examined . Four characters does not have to be a NULL terminated string . TRUE if signature is has 4 valid ACPI characters Validate an ACPI table signature .
BOOLEAN
AcpiUtValidNameseg (
    char                    *Name)
{
    UINT32                  i;
    for (i = 0; i < ACPI_NAME_SIZE; i++)
    {
        if (!AcpiUtValidNameChar (Name[i], i))
        {
            return (FALSE);
        }
    }
    return (TRUE);
}
BOOLEAN AcpiUtValidNameseg ( char * Name ) { UINT32 i ; for ( i = 0 ; i < ACPI_NAME_SIZE ; i ++ ) { if ( ! AcpiUtValidNameChar ( Name [ i ] , i ) ) { return ( FALSE ) ; } } return ( TRUE ) ; }
FUNCTION:    AcpiUtValidNameseg
 PARAMETERS:  Name            - The name or table signature to be examined.
FUNCTION : AcpiUtValidNameseg PARAMETERS : Name - The name or table signature to be examined .
/* Validate each character in the signature */