.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_avp_get_by_num 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_avp_get_by_num \- Look up the idx-th occurrence of an attribute by legacy numeric ID. .SH SYNOPSIS .nf .B #include .sp \fBconst radcli_avp * radcli_avp_get_by_num\fP( \fBconst radcli_avp_list *\fP\fIlist\fP, \fBconst radcli_ctx *\fP\fIctx\fP, \fBuint32_t \fP\fIattrid\fP, \fBuint32_t \fP\fIvendor\fP, \fBunsigned \fP\fIidx\fP ); .fi .SH DESCRIPTION .SH PARAMETERS .TP .B list the list to search. .TP .B ctx a context with a dictionary loaded. .TP .B attrid the attribute ID (a PW_* constant, or a vendor type ID when vendor is non-zero). .TP .B vendor the vendor PEN, or 0 for a standard attribute. .TP .B idx 0 for the first occurrence, 1 for the second, and so on. .SH RETURN VALUE .PP the matching attribute, or NULL if no such attribute is defined, or fewer than idx+1 occurrences exist in list. .SH SEE ALSO .PP .nh .ad l \fIradcli_avp_get_bytes_by_num\fP(3), \fIradcli_avp_get_cstr_by_num\fP(3), \fIradcli_avp_get_ip4prefix_by_num\fP(3), \fIradcli_avp_get_ip6_by_num\fP(3), \fIradcli_avp_get_uint32_by_num\fP(3), \fIradcli_avp_get_uint64_by_num\fP(3) .ad .hy