acebb5efc57573635a0d91f1a96885f36cfc16e8
11 *\brief Output a vector of strings to out_fd.
12 *\arg strings A vector containing text.
13 *\retval 0 The vector was empty.
14 *\retval 1 The vector contained text.
16 int dump_vector(vector
<string
> strings
){
18 for (vector
<string
>::iterator iter
=strings
.begin();iter
<strings
.end();iter
++){
20 snprintf(buffer
,50000,"%s\n",(*iter
).c_str());
21 write (out_fd
,buffer
,strlen(buffer
));
28 *\brief Output a vector of strings to stderr.
29 *\arg strings A vector containing text.
30 *\retval 0 The vector was empty.
31 *\retval 1 The vector contained text.
33 int dump_vector_err(vector
<string
> strings
){
35 for (vector
<string
>::iterator iter
=strings
.begin();iter
<strings
.end();iter
++){
37 snprintf(buffer
,50000,"%s\n",(*iter
).c_str());
38 write (2,buffer
,strlen(buffer
));