NAME
select_from_word_list - Copies selected words (strings) from a word list
SYNOPSIS
#include "l/l_word_list.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int select_from_word_list
(
Word_list **target_word_list_ptr_ptr,
const Word_list *source_word_list_ptr,
const Int_vector *enable_vp
);
DESCRIPTION
The routine copies selected words (strings) from a source word list to a
target word list which is created as needed to be the size needed for the
selected words (strings). The selection is specified using the integer vector
enable_vp. If enable_vp is NULL, this routine is the same as copy_word_list.
If enable_vp is not NULL, it must be the same length as the source word list,
and it specifies needed words (strings) by non zero elements.
RETURNS
NO_ERROR on success, and ERROR on failure, with an appropriate error
message being set.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
get_target_word_list
,
ra_get_target_word_list
,
free_word_list
,
append_word_list
,
copy_word_list
,
sort_word_list
,
search_word_list
,
search_sorted_word_list
,
concat_word_lists
,
read_word_list
,
fp_read_word_list
,
sget_word_list
,
write_word_list
,
fp_write_word_list
,
count_strings_in_word_list
,
trim_word_list_empty_entries_at_tail