'\" t .TH "SD_BUS_MESSAGE_READ_STRV" "3" "" "systemd 247" "sd_bus_message_read_strv" .\" ----------------------------------------------------------------- .\" * 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" sd_bus_message_read_strv \- Access an array of strings in a message .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ sd_bus_message_read_strv('u .BI "int sd_bus_message_read_strv(sd_bus_message\ *" "m" ", char\ ***" "l" ");" .SH "DESCRIPTION" .PP \fBsd_bus_message_read_strv()\fR gives access to an array of strings in message \fIm\fR\&. The "read pointer" in the message must be right before an array of strings\&. On success, a pointer to the \fBNULL\fR\-terminated array of strings is returned in the output parameter \fIl\fR\&. Note that ownership of this array is transferred to the caller\&. Hence, the caller is responsible for freeing this array and its contents\&. .SH "RETURN VALUE" .PP On success, \fBsd_bus_message_read_strv()\fR returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. .SS "Errors" .PP Returned errors may indicate the following problems: .PP \fB\-EINVAL\fR .RS 4 \fIm\fR or \fIl\fR are \fBNULL\fR\&. .RE .PP \fB\-EPERM\fR .RS 4 The message is not sealed\&. .RE .PP \fB\-EBADMSG\fR .RS 4 The message cannot be parsed\&. .RE .SH "SEE ALSO" .PP \fBsystemd\fR(1), \fBsd-bus\fR(3), \fBsd_bus_message_read\fR(3)