ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Macros | Functions
io.h File Reference

Generic input-output facilities. More...

#include <arch/platform.h>
#include <stdio.h>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IO_TIME_BUFFER_LEN   26
 The bytes required to store a time string obtained with io_local_time_get()
 

Functions

void io_local_time_get (char res[IO_TIME_BUFFER_LEN])
 Fills in a formatted string of the current time. More...
 
FILE * io_file_tmp_get (void)
 Creates a temporary file. More...
 

Detailed Description

Generic input-output facilities.

This header declares architecture independent input-oputput facilities for the use in the simulator

Function Documentation

◆ io_file_tmp_get()

io_file_tmp_get ( void  )

Creates a temporary file.

Returns
a temporary file, an opaque object to be used in this module

◆ io_local_time_get()

io_local_time_get ( char  res[IO_TIME_BUFFER_LEN])

Fills in a formatted string of the current time.

Parameters
resa pointer to a memory area with at least IO_TIME_BUFFER_LEN chars

The resulting string is written in res.