⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 format.c

📁 geekos 0.3.0简单的操作系统
💻 C
字号:
/* * format - Format a filesystem on a block device * Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu> * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.10 $ * * This is free software.  You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". */#include <conio.h>#include <process.h>#include <fileio.h>int main(int argc, char *argv[]){    int rc;    if (argc != 3) {         Print("Usage: format <devname> <fstype>\n");	 Exit(1);    }    rc = Format(argv[1], argv[2]);    if (rc != 0) {	Print("Error: Could not format %s as %s: %s\n", argv[1], argv[2], Get_Error_String(rc));	Exit(1);    }    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -