Changeset 794 for XIOS/trunk/src/interface/c/icduration.cpp
- Timestamp:
- 11/19/15 16:55:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icduration.cpp
r545 r794 1 #include "icutil.hpp" 1 2 #include "icdate.hpp" 2 3 #include "calendar_util.hpp" … … 4 5 extern "C" 5 6 { 7 void cxios_duration_convert_to_string(cxios_duration dur_c, char* str, int str_size) 8 { 9 xios::CDuration dur = { dur_c.year, dur_c.month, dur_c.day, 10 dur_c.hour, dur_c.minute, dur_c.second, 11 dur_c.timestep }; 12 13 if (!string_copy(dur.toString(), str, str_size)) 14 ERROR("void cxios_duration_convert_to_string(cxios_duration dur_c, char* str, int str_size)", << "Input string is too short"); 15 } 16 6 17 cxios_duration cxios_duration_add(cxios_duration dur1_c, cxios_duration dur2_c) 7 18 {
Note: See TracChangeset
for help on using the changeset viewer.