Carbon


TECCountAvailableSniffers

Header: TextEncodingConverter.h Carbon status: Supported

Counts and returns the number of sniffers available in all installed plug-ins.

OSStatus TECCountAvailableSniffers (
    ItemCount *numberOfEncodings
);
Parameter descriptions
numberOfEncodings

On return, a pointer to the number of sniffers in all installed plug-ins. You can use this number to determine what size array to allocate for a parameter of the TECGetAvailableSniffers function.

function result

A result code.

DISCUSSION

This function counts every instance of a sniffer. If different conversion plug-ins support a sniffer for the same encoding, the sniffer is counted more than once. Since the TECGetAvailableSniffers function ignores duplicate sniffers, TECCountAvailableSniffers may return a number greater than the number of array elements needed for the availableSniffers[] parameter of the TECGetAvailableSniffers function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)