# intlLookupLocale

Returns a pointer to a locale structure.

### Synopsis

`Locale *intlLookupLocale(Item locItem);`

### Description

This macro returns a pointer to a locale structure. The structure can then be examined and its contents used to localize titles.

### Arguments

locItem
  A locale item, as obtained from intlOpenLocale().

### Return Value

The macro returns a pointer to a locale structure, which contains localization information, or NULL if the supplied Item was not a valid locale item.

### Implementation

Macro implemented in intl.h V24.

### Associated Files

intl.h

### Example

`

    {
    Item    |t;
    Locale *loc;
        it = intlOpenLocale(NULL);
        0
        {
            loc = intlLookupLocale(it);
            // you can now read fields in the Locale structure.
            e
            intlCloseLocale(it);
        }
    }

`

### See Also

``intlOpenLocale`(), intlCloseLocale()`