摘要:今天写了一个UNIX2DOS工具,用于把UNIX系统的文本转换成DOS(Windows)下支持的文本。两大操作系统文本主要的不同在于换行时UNIX里只有 '\n'字符,而在DOS(Windows)下变成了'\r\n'。废话不多说,此工具用C语言写成,源代码如下:[代码]当然,还有一个附加产品:DOS2UNIX,源代码如下:[代码]参考代码源:HP UNIX CP命令,欢迎各位高手批评指正。Wedn...
阅读全文
05 2009 档案
LeonardIn theory, there is no difference between theory and practice. But, in practice, there is. |