HM_asciifile_readfixedstring()
Reads a fixed string from an ASCII file and stores it in the location pointed to by the user-passed character pointer string.
Syntax
char * HM_asciifile_readfixedstring(FILE * file, char * string, int width);
Type
HyperMesh hmlib Function
Description
Reads a fixed string from an ASCII file and stores it in the location pointed to by the user-passed character pointer string. Returns the pointer to the value of the string contained in the field.
Inputs
- file
- The handle to the open ASCII file (must be opened with fopen(“”,”rt”)).
- string
- The pointer to a string. It is assumed that the memory allocated for the string is greater than or equal to the width.
- width
- The width of the integer that should be read.
Errors
None.