'\" t .\" Title: xdr_buf_subsegment .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "XDR_BUF_SUBSEGMENT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" xdr_buf_subsegment \- set subbuf to a portion of buf .SH "SYNOPSIS" .HP \w'int\ xdr_buf_subsegment('u .BI "int xdr_buf_subsegment(struct\ xdr_buf\ *\ " "buf" ", struct\ xdr_buf\ *\ " "subbuf" ", unsigned\ int\ " "base" ", unsigned\ int\ " "len" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 an xdr buffer .RE .PP \fIsubbuf\fR .RS 4 the result buffer .RE .PP \fIbase\fR .RS 4 beginning of range in bytes .RE .PP \fIlen\fR .RS 4 length of range in bytes .RE .SH "DESCRIPTION" .PP sets \fIsubbuf\fR to an xdr buffer representing the portion of \fIbuf\fR of length \fIlen\fR starting at offset \fIbase\fR\&. .PP \fIbuf\fR and \fIsubbuf\fR may be pointers to the same struct xdr_buf\&. .PP Returns \-1 if base of length are out of bounds\&. .SH "COPYRIGHT" .br