📄 00000020.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: suzhe (I Love Linux), 信区: Linux <BR>标 题: Re: bin->iso 在linux 下面用什么软件? (转载) <BR>发信站: BBS 水木清华站 (Mon Jan 24 00:41:21 2000) <BR> <BR> <BR> <BR>Bin2ISO, here is the source code: <BR> <BR>/**************************************************** <BR> <BR> <BR>#include <stdio.h> <BR> <BR>/* G L O B A L D E F I N E S */ <BR>#define byte unsigned char <BR>#define SIZERAW 2352 <BR>#define SIZEISO 2048 <BR> <BR>FILE *INPUT, *OUTPUT; <BR> <BR>/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ */ <BR> <BR>int main( argc, argv ) <BR> <BR>int argc; <BR>char *argv[]; <BR>{ <BR> byte buf[SIZERAW+100]; <BR> <BR> /* Tell them what I am. */ <BR> fprintf (stderr, "raw2iso - Converts RAW format files to ISO format - V1.0\n"); <BR> <BR> /* Input -- process -- Output */ <BR> if ( argc != 3 ) return 1; <BR> INPUT = fopen( argv[1], "rb" ); <BR> OUTPUT = fopen( argv[2], "wb" ); <BR> memset( &buf[0], '\0', sizeof( buf ) ); <BR> while( fread( &buf[0], SIZERAW, 1, INPUT ) ) { <BR> fwrite( &buf[0]+16, SIZEISO, 1, OUTPUT ); <BR> memset( &buf[0], '\0', sizeof( buf ) ); <BR> }; <BR> return 0; <BR>} <BR> <BR> <BR> <BR>【 在 angel (khan) 的大作中提到: 】 <BR>∶<I> faint </I><BR>∶<I> 好歹说说叫个什么名字呀 </I><BR>∶<I> 要不不是等于没说? </I><BR> <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.26.80] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -