diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-04-12 00:49:26 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-04-12 00:49:26 +0000 |
commit | a283157c3832f151fa9f5abf5f18c56d05e5815d (patch) | |
tree | cded6934e53c916a0d9a4a2258689cf3ec91dc0b | |
parent | c8d9e0604a7d873cf231af60b87662eb949b3527 (diff) | |
download | busybox-a283157c3832f151fa9f5abf5f18c56d05e5815d.tar.gz |
convert() is used by dos2unix and unix2dos
-rw-r--r-- | include/libbb.h | 5 | ||||
-rw-r--r-- | libbb/libbb.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 54e852512..8a5e6756f 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -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__ */ diff --git a/libbb/libbb.h b/libbb/libbb.h index 54e852512..8a5e6756f 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -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__ */ |