gbatch_putredirlist - replace the redirection list in a job structure

# NAME

gbatch_putredirlist - replace the redirection list in a job structure

# SYNOPSIS

#include <gbatch.h>

int gbatch_putredirlist(apiBtjob *jobp, const apiMredir *rdlist, const unsigned num)

# DESCRIPTION

The function gbatch_putredirlist is used to replace the entire redirection list for a job in one operation.

jobp is a pointer to a structure which contains the job details.

rdlist is a vector of redirections.

num is the number of elements in rdlist.

The new redirection list completely replaces the old.

# RETURN VALUES

The function will return non-zero if successful otherwise zero if the string table overflowed. In the latter case the contents of the job should no be relied upon, the job structure should be saved first if in doubt.

# SEE ALSO

gbatch_delarg(3), gbatch_delenv(3), gbatch_delredir(3), gbatch_getarg(3), gbatch_getdirect(3), gbatch_getenv(3), gbatch_getenvlist(3), gbatch_gethenv(3), gbatch_getredir(3), gbatch_gettitle(3), gbatch_putarg(3), gbatch_putarglist(3), gbatch_putdirect(3), gbatch_putenv(3), gbatch_putenvlist(3), gbatch_putredir(3), gbatch_puttitle(3), gbatch_setqueue(3).

# COPYRIGHT

Copyright (c) 2009 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.

# AUTHOR

John M Collins, Xi Software Ltd.