aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_input_text_copy.c
blob: da12bfd7fedde896fae59131bcac55e435b1b35f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


int
libexec_input_text_copy(struct libexec_command *cmd, int fd, const char *text)
{
	if (!text) {
		errno = EINVAL;
		return -1;
	}
	return libexec_input_data_copy(cmd, fd, text, strlen(text));
}


#else
LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
#endif