convert() is used by dos2unix and unix2dos
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 12 Apr 2001 00:49:26 +0000 (00:49 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 12 Apr 2001 00:49:26 +0000 (00:49 -0000)
include/libbb.h
libbb/libbb.h

index 54e8525127338ce1646b26b0661cc95fd8adf289..8a5e6756f648453fe693def90a0834e58f0676a5 100644 (file)
@@ -233,4 +233,9 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file);
 extern void gz_close(int gunzip_pid);
 extern int gz_open(FILE *compressed_file, int *pid);
 
+#define CT_AUTO        0
+#define CT_UNIX2DOS    1
+#define CT_DOS2UNIX    2
+extern int convert(char *fn, int ConvType);
+
 #endif /* __LIBBB_H__ */
index 54e8525127338ce1646b26b0661cc95fd8adf289..8a5e6756f648453fe693def90a0834e58f0676a5 100644 (file)
@@ -233,4 +233,9 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file);
 extern void gz_close(int gunzip_pid);
 extern int gz_open(FILE *compressed_file, int *pid);
 
+#define CT_AUTO        0
+#define CT_UNIX2DOS    1
+#define CT_DOS2UNIX    2
+extern int convert(char *fn, int ConvType);
+
 #endif /* __LIBBB_H__ */