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)  

file.h
Go to the documentation of this file.
1 #ifndef FILE_H
2 #define FILE_H
3 
4 /* Max valid value of uiLen for contains_data */
5 #define MAX_DATA_LEN 10240
6 
7 /* Checks if a file contains a data pattern of length uiLen at position
8  ulPositoin. The file pointer will change when calling this function! */
9 int contains_data(FILE *fp, unsigned long ulPosition,
10  const void *pData, unsigned int uiLen);
11 
12 /* Reads data of length uiLen at position ulPositoin.
13  The file pointer will change when calling this function! */
14 int read_data(FILE *fp, unsigned long ulPosition,
15  void *pData, unsigned int uiLen);
16 
17 /* Writes a data pattern of length uiLen at position ulPositoin.
18  The file pointer will change when calling this function! */
19 int write_data(FILE *fp, unsigned long ulPosition,
20  const void *pData, unsigned int uiLen);
21 
22 #endif
write_data
int write_data(FILE *fp, unsigned long ulPosition, const void *pData, unsigned int uiLen)
Definition: file.c:78
read_data
int read_data(FILE *fp, unsigned long ulPosition, void *pData, unsigned int uiLen)
Definition: file.c:41
contains_data
int contains_data(FILE *fp, unsigned long ulPosition, const void *pData, unsigned int uiLen)
Definition: file.c:29