---
name: "radcli_dict_lookup_num"
section: "3"
platform: "linux"
package: "radcli"
version: "2.0.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/radcli_dict_lookup_num"
---

# radcli\_dict\_lookup\_num(3)

Look up a dictionary attribute by its legacy numeric ID and vendor.

## NAME

radcli\_dict\_lookup\_num - Look up a dictionary attribute by its legacy numeric ID and vendor.

## SYNOPSIS

```
#include <radcli/>

const radcli_attr_def * radcli_dict_lookup_num(
    const radcli_ctx  *ctx,
    uint32_t           attrid,
    uint32_t           vendor
);
```

## DESCRIPTION

Bridges callers that still hold a radcli.h PW\_\* constant; equivalent to radcli\_dict\_lookup\_oid() with the same attribute expressed as an OID.

## PARAMETERS

- **ctx**

  a context with a dictionary loaded.

- **attrid**

  the attribute ID (a PW\_\* constant, or a vendor type ID when vendor is non-zero).

- **vendor**

  the vendor PEN, or 0 for a standard attribute.

## RETURN VALUE

the attribute definition, or NULL if no such attribute is loaded. Non-NULL for any RFC 2865/2866/2869 attribute ID on a context that has the built-in dictionary loaded  every radcli\_ctx\_read\_config() context, and every radcli\_ctx\_new() context unless created with RADCLI\_CTX\_NO\_BUILTIN\_DICT.

## SEE ALSO

[*radcli\_attr\_def\_name*(3)](/radcli_attr_def_name/3.md), [*radcli\_attr\_def\_oid*(3)](/radcli_attr_def_oid/3.md), [*radcli\_attr\_def\_type*(3)](/radcli_attr_def_type/3.md), [*radcli\_dict\_lookup*(3)](/radcli_dict_lookup/3.md), [*radcli\_dict\_lookup\_oid*(3)](/radcli_dict_lookup_oid/3.md), [*radcli\_dict\_lookup\_value*(3)](/radcli_dict_lookup_value/3.md)
