Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ptwX_misc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "ptwX.h"

Go to the source code of this file.

Functions

nfu_status ptwX_simpleWrite (statusMessageReporting *smr, ptwXPoints const *ptwX, FILE *f, char const *format)
nfu_status ptwX_simplePrint (statusMessageReporting *smr, ptwXPoints const *ptwX, char const *format)

Function Documentation

◆ ptwX_simplePrint()

nfu_status ptwX_simplePrint ( statusMessageReporting * smr,
ptwXPoints const * ptwX,
char const * format )

Definition at line 29 of file ptwX_misc.c.

29 {
30
31 return( ptwX_simpleWrite( smr, ptwX, stdout, format ) );
32}
nfu_status ptwX_simpleWrite(statusMessageReporting *smr, ptwXPoints const *ptwX, FILE *f, char const *format)
Definition ptwX_misc.c:18

◆ ptwX_simpleWrite()

nfu_status ptwX_simpleWrite ( statusMessageReporting * smr,
ptwXPoints const * ptwX,
FILE * f,
char const * format )

Definition at line 18 of file ptwX_misc.c.

18 {
19
20 int64_t i1;
21 double *p1 = ptwX->points;
22
23 for( i1 = 0; i1 < ptwX->length; ++i1, ++p1 ) fprintf( f, format, *p1 );
24 return( nfu_Okay );
25}
@ nfu_Okay

Referenced by ptwX_simplePrint().