summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netsvcs/clients/Naming/Dump_Restore/createfile.cpp')
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/createfile.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/netsvcs/clients/Naming/Dump_Restore/createfile.cpp b/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
deleted file mode 100644
index fbd85b78768..00000000000
--- a/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdio.h>
-// $Id$
-
-#include <string.h>
-#include <math.h>
-
-int
-main (int argc, char **argv)
-{
- FILE *infile, *outfile;
- char buf[BUFSIZ];
-
- if ((infile = fopen (argv[1], "r")) == NULL)
- return -1;
-
- if ((outfile = fopen (argv[2], "w")) == NULL)
- return -1;
-
- int count = 0;
- while (::fgets (buf, BUFSIZ, infile))
- {
- buf[::strlen(buf) - 1] = '\0';
- fputs (buf, outfile);
- if (count % 2 == 0)
- fputs (" ", outfile);
- else
- fputs ("\n", outfile);
- count++;
- }
- fclose (outfile);
- fclose (infile);
-}