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

Go to the source code of this file.

Functions

void ptwX_simpleWrite (ptwXPoints const *ptwX, FILE *f, char const *format)
 
void ptwX_simplePrint (ptwXPoints const *ptwX, char const *format)
 

Function Documentation

◆ ptwX_simplePrint()

void ptwX_simplePrint ( ptwXPoints const *  ptwX,
char const *  format 
)

Definition at line 29 of file ptwX_misc.cc.

29 {
30
31 ptwX_simpleWrite( ptwX, stdout, format );
32}
void ptwX_simpleWrite(ptwXPoints const *ptwX, FILE *f, char const *format)
Definition: ptwX_misc.cc:19

◆ ptwX_simpleWrite()

void ptwX_simpleWrite ( ptwXPoints const *  ptwX,
FILE *  f,
char const *  format 
)

Definition at line 19 of file ptwX_misc.cc.

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

Referenced by ptwX_simplePrint().