Fortran SFF API to data I/O streams in C++

◆ sff_helper_decode_wid2__()

int sff_helper_decode_wid2__ ( char *  wid2in,
char *  wid2out,
ftnlen  wid2in_len,
ftnlen  wid2out_len 
)

decode a WID2 character sequence

Takes a WID2 character sequence in any encoding an provides a standard WID2 line. See discussion in How function sff_PrepWid2 encodes WID2 line data

Parameters
wid2inWID2 data (function input value)
wid2outWID2 data (function output value)
wid2in_lensize of wid2in array
wid2out_lensize of wid2out array

Definition at line 42 of file fapid_sff_helper_decode_wid2.cc.

References fapidxx::fillfstring(), and fapidxx::WID2container::wid2.

44 {
45  fapidxx::WID2container wid2(wid2in, wid2in_len);
46  fapidxx::fillfstring(wid2.wid2.line(), wid2out, wid2out_len);
47  return(0);
48 } // int sff_helper_decode_wid2__
This struct is used to pass WID2 line data within libfapidxx.
Definition: wid2container.h:62
void fillfstring(const std::string &s, char *fstring, ftnlen slen)
fill a Fortran string with a C++ string
Definition: helper.cc:60
Here is the call graph for this function: