Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ptwX_misc.c
Go to the documentation of this file.
1/*
2# <<BEGIN-copyright>>
3# Copyright 2019, Lawrence Livermore National Security, LLC.
4# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6# SPDX-License-Identifier: MIT
7# <<END-copyright>>
8*/
9
10#include <stdio.h>
11#include <stdlib.h>
12
13#include "ptwX.h"
14
15/*
16************************************************************
17*/
18nfu_status ptwX_simpleWrite( statusMessageReporting *smr, ptwXPoints const *ptwX, FILE *f, char const *format ) {
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}
26/*
27************************************************************
28*/
29nfu_status ptwX_simplePrint( statusMessageReporting *smr, ptwXPoints const *ptwX, char const *format ) {
30
31 return( ptwX_simpleWrite( smr, ptwX, stdout, format ) );
32}
@ nfu_Okay
enum nfu_status_e nfu_status
struct ptwXPoints_s ptwXPoints
nfu_status ptwX_simpleWrite(statusMessageReporting *smr, ptwXPoints const *ptwX, FILE *f, char const *format)
Definition ptwX_misc.c:18
nfu_status ptwX_simplePrint(statusMessageReporting *smr, ptwXPoints const *ptwX, char const *format)
Definition ptwX_misc.c:29
int64_t length
Definition ptwX.h:29
double * points
Definition ptwX.h:32