xref: /linux/tools/net/sunrpc/xdrgen/templates/C/pointer/decoder/string.j2 (revision 79d2e1919a2728ef49d938eb20ebd5903c14dfb0)
1{# SPDX-License-Identifier: GPL-2.0 #}
2{% if annotate %}
3	/* member {{ name }} (variable-length string) */
4{% endif %}
5	if (!xdrgen_decode_string(xdr, (string *)ptr, {{ maxsize }}))
6		return false;
7