"Fossies" - the Fresh Open Source Software Archive

Member "ms-sys-2.7.0/inc/file.h" (24 Oct 2015, 798 Bytes) of package /linux/privat/ms-sys-2.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "file.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.4.1_vs_2.6.0.

    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