OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
rad_umat_input_read.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define _FCALL

Functions

void rad_umat_open_ (char *filename, int *length, int *result)
void rad_umat_input_read_ (char *line, int *len, int *size_read)
void ad_umat_input_rewind_ ()
void rad_umat_close_input_ ()
void _FCALL rad_umat_input_open_ (char *filename, int *length, int *result)
void rad_umat_input_rewind_ ()

Variables

FILE * userlib_input
char * cfilename

Macro Definition Documentation

◆ _FCALL

#define _FCALL

Definition at line 27 of file rad_umat_input_read.c.

Function Documentation

◆ ad_umat_input_rewind_()

void ad_umat_input_rewind_ ( )

◆ rad_umat_close_input_()

void rad_umat_close_input_ ( )

Definition at line 87 of file rad_umat_input_read.c.

87 {
88 fclose( userlib_input);
89 userlib_input=NULL;
90 remove (cfilename);
91}
FILE * userlib_input
char * cfilename

◆ rad_umat_input_open_()

void _FCALL rad_umat_input_open_ ( char * filename,
int * length,
int * result )

Definition at line 42 of file rad_umat_input_read.c.

42 {
43 int i;
44
45 *result = 0;
46 cfilename=malloc(sizeof(char)*(*length+1));
47 for (i=0;i< *length;i++) { cfilename[i] = filename[i] ; }
48 cfilename[*length]='\0';
49
50 userlib_input=fopen(cfilename,"r");
51
52 if (userlib_input==NULL){
53 *result=0;
54 }else{
55 *result=1;
56 }
57
58 return;
59}

◆ rad_umat_input_read_()

void rad_umat_input_read_ ( char * line,
int * len,
int * size_read )

Definition at line 65 of file rad_umat_input_read.c.

66{
67 int i;
68 *size_read=0;
69 for (i=0;i<*len;i++) line[i] = ' ' ;
70 fgets(line,*len, userlib_input);
71 line[strlen(line)-1]='\0';
72 *size_read=strlen(line);
73}

◆ rad_umat_input_rewind_()

void rad_umat_input_rewind_ ( )

Definition at line 79 of file rad_umat_input_read.c.

79 {
80 rewind (userlib_input);
81}

◆ rad_umat_open_()

void rad_umat_open_ ( char * filename,
int * length,
int * result )

Variable Documentation

◆ cfilename

char* cfilename

Definition at line 30 of file rad_umat_input_read.c.

◆ userlib_input

FILE* userlib_input

Definition at line 29 of file rad_umat_input_read.c.