Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencommon.h
Go to the documentation of this file.
00001 /* common.h - Common functions */ 00002 00003 # define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */ 00004 00005 #include "version.h" 00006 00007 #ifndef _COMMON_H 00008 #define _COMMON_H 00009 00010 //void die(char *msg,...) __attribute((noreturn)); 00011 void die(char *msg,...); 00012 00013 /* Displays a prinf-style message and terminates the program. */ 00014 00015 //void pdie(char *msg,...) __attribute((noreturn)); 00016 void pdie(char *msg,...); 00017 00018 /* Like die, but appends an error message according to the state of errno. */ 00019 00020 void *vfalloc(int size); 00021 void vffree(void *ptr); 00022 /* mallocs SIZE bytes and returns a pointer to the data. Terminates the program 00023 if malloc fails. */ 00024 00025 void *qalloc(void **root,int size); 00026 00027 /* Like alloc, but registers the data area in a list described by ROOT. */ 00028 00029 void qfree(void **root); 00030 00031 /* Deallocates all qalloc'ed data areas described by ROOT. */ 00032 00033 //int min(int a,int b); 00034 00035 /* Returns the smaller integer value of a and b. */ 00036 00037 char get_key(char *valid,char *prompt); 00038 00039 /* Displays PROMPT and waits for user input. Only characters in VALID are 00040 accepted. Terminates the program on EOF. Returns the character. */ 00041 00042 #endif Generated on Sat May 26 2012 04:31:54 for ReactOS by
1.7.6.1
|