ms-sys  2.7.0
About: ms-sys writes Microsoft compatible boot records. Development version.
  Fossies Dox: ms-sys-2.7.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

main.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "fat12.h"
#include "fat16.h"
#include "fat32.h"
#include "exfat.h"
#include "ntfs.h"
#include "oem_id.h"
#include "br.h"
#include "identify.h"
#include "nls.h"
#include "partition_info.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define VERSION   "2.7.0"
 

Functions

void print_help (const char *szCommand)
 
void print_version (void)
 
int parse_switches (int argc, char **argv, int *piBr, int *pbForce, int *pbPrintVersion, int *pbKeepLabel, int *pbWritePartitionInfo, int *piHeads, char **pszOemId, int *pbWriteWindowsDiskSignature, uint32_t *tWindowsDiskSignature)
 
int isnumber (const char *szString)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ VERSION

#define VERSION   "2.7.0"

Copyright (C) 2009-2016 Henrik Carlqvist

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., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 34 of file main.c.

Function Documentation

◆ isnumber()

int isnumber ( const char *  szString)

Definition at line 920 of file main.c.

Referenced by parse_switches().

◆ main()

◆ parse_switches()

int parse_switches ( int  argc,
char **  argv,
int *  piBr,
int *  pbForce,
int *  pbPrintVersion,
int *  pbKeepLabel,
int *  pbWritePartitionInfo,
int *  piHeads,
char **  pszOemId,
int *  pbWriteWindowsDiskSignature,
uint32_t *  tWindowsDiskSignature 
)

◆ print_help()

void print_help ( const char *  szCommand)

Definition at line 608 of file main.c.

References _.

Referenced by main().

◆ print_version()

void print_version ( void  )

Definition at line 693 of file main.c.

References _, and VERSION.

Referenced by main().