.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_avp_get_bytes_by_num 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_avp_get_bytes_by_num \- Look up an attribute by legacy numeric ID and read its first occurrence's raw bytes. .SH SYNOPSIS .nf .B #include .sp \fBint radcli_avp_get_bytes_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, \fBconst void **\fP\fIout\fP, \fBsize_t *\fP\fIlen\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 out where to write a pointer to the value; valid for list's lifetime. May be NULL. .TP .B len where to write the value's length in bytes. May be NULL. .SH RETURN VALUE .PP 0 on success, -1 on failure (no such attribute, or no occurrence). .SH SEE ALSO .PP .nh .ad l \fIradcli_avp_get_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