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

📄 pblkfblockprint.c

📁 B树算法实现
💻 C
字号:
/* pblkfblockprint.c - shell program to print block layout Copyright (C) 2002    Peter Graf   This file is part of PBL - The Program Base Library.   PBL is free software.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   For more information on the Program Base Library or Peter Graf,   please see: http://mission.base.com/.    $Log: pblkfblockprint.c,v $    Revision 1.1  2002/09/12 20:47:08  peter    Initial revision------------------------------------------------------------------------------*//*  * make sure "strings <exe> | grep Id | sort -u" shows the source file versions */static char * rcsid = "$Id: pblkfblockprint.c,v 1.1 2002/09/12 20:47:08 peter Exp $";static int    rcsid_fkt() { return( rcsid ? 0 : rcsid_fkt() ); }#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include "pbl.h"extern int pblKfBlockPrint(char * path,       /** path of file to create                                 */long blockno       /** number of block to print                               */);int main( int argc, char * argv[] ){    long   blockno;    if( argc != 3 )    {        fprintf( stderr, "Usage: %s path blockno\n", argv[ 0 ] );        exit( 1 );    }    blockno = atoi( argv[ 2 ] );    pblKfBlockPrint( argv[ 1 ], blockno );    return( 0 );}

⌨️ 快捷键说明

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