FEDEM Solver  R8.0
Source code of the dynamics solver
FFaTag_C.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 SAP SE
2  *
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * This file is part of FEDEM - https://openfedem.org
6  */
12 #ifndef FFA_TAG_C_H
13 #define FFA_TAG_C_H
14 
15 #include "FFaLib/FFaOS/FFaIO.H"
16 
17 
18 extern int FFa_writeTag (FT_FILE fd, const char* tag, const int nchar,
19  const unsigned int chksum);
20 
21 extern int FFa_readTag (FT_FILE fd, char* tag, const int nchar,
22  unsigned int* chksum);
23 
24 extern int FFa_endian ();
25 
26 #endif
Functions and data type for direct access of large binary files.
#define FT_FILE
File pointer.
Definition: FFaIO.H:136
int FFa_writeTag(FT_FILE fd, const char *tag, const int nchar, const unsigned int chksum)
Writes the file tag, endian field and checksum to a specified file.
Definition: FFaTag.C:372
int FFa_readTag(FT_FILE fd, char *tag, const int nchar, unsigned int *chksum)
Reads the file tag, endian field and checksum from a specified file.
Definition: FFaTag.C:348
int FFa_endian()
Returns the current system endian.
Definition: FFaTag.C:171