1 /******************************************************************************
5 * $Date: 2007/03/26 01:00:40 $
9 * Revision 2.0 2007/03/26 01:00:40 hachti
10 * *** empty log message ***
13 ******************************************************************************/
26 *\brief Output a vector of strings.
27 *\arg strings A vector containing text.
28 *\arg fp A FILE pointer where to write to.
29 *\retval 0 The vector was empty.
30 *\retval 1 The vector contained text.
32 int dump_vector_fp(vector
<string
> strings
, FILE * fp
){
34 for (vector
<string
>::iterator iter
=strings
.begin();iter
<strings
.end();iter
++){
36 iter
->substr(0,iter
->find_last_not_of(" ")+1).c_str());
43 *\brief Output a vector of strings to out_fd.
44 *\arg strings A vector containing text.
45 *\retval 0 The vector was empty.
46 *\retval 1 The vector contained text.
48 int dump_vector(vector
<string
> strings
){
49 FILE * fp
=fdopen(out_fd
,"w");
50 return dump_vector_fp(strings
,fp
);