.\" File automatically generated by doxy2man0.3 .\" Generation date: Thu Sep 3 2026 .TH radcli_avp_get_cstr_by_num 3 2026-09-03 "radcli" "Radius client library" .SH "NAME" radcli_avp_get_cstr_by_num \- Look up an attribute by legacy numeric ID and read its first occurrence as a NUL-terminated string. .SH SYNOPSIS .nf .B #include .sp \fBconst char * radcli_avp_get_cstr_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 ); .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. .SH RETURN VALUE .PP a pointer valid for list's lifetime (owned by list never freed by the caller), or NULL if no such attribute is defined, no occurrence exists, or as radcli_avp_get_cstr() (embedded NUL byte, or invalid UTF-8 for a RADCLI_TYPE_TEXT attribute). .SH SEE ALSO .PP .nh .ad l \fIradcli_avp_get_by_num\fP(3), \fIradcli_avp_get_bytes_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