-int dump_vector_err(vector<string> strings){
- int res=0;
- for (vector<string>::iterator iter=strings.begin();iter<strings.end();iter++){
- char buffer[50000];
- snprintf(buffer,50000,"%s\n",(*iter).c_str());
- write (2,buffer,strlen(buffer));
- res=1;
- }
- return res;
+int dump_vector(vector<string> strings){
+ FILE * fp=fdopen(out_fd,"w");
+ return dump_vector_fp(strings,fp);