12 *\brief Output a vector of strings.
13 *\arg strings A vector containing text.
14 *\arg fp A FILE pointer where to write to.
15 *\retval 0 The vector was empty.
16 *\retval 1 The vector contained text.
18 int dump_vector_fp(vector
<string
> strings
, FILE * fp
){
20 for (vector
<string
>::iterator iter
=strings
.begin();iter
<strings
.end();iter
++){
22 iter
->substr(0,iter
->find_last_not_of(" ")+1).c_str());
29 *\brief Output a vector of strings to out_fd.
30 *\arg strings A vector containing text.
31 *\retval 0 The vector was empty.
32 *\retval 1 The vector contained text.
34 int dump_vector(vector
<string
> strings
){
35 FILE * fp
=fdopen(out_fd
,"w");
36 return dump_vector_fp(strings
,fp
);