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

◆ freeblock() [1/2]

sff::FREE fapidxx::freeblock ( integer nline,
char *  lines,
ftnlen  lines_len 
)

create C++ FREE block from Fortran FREE lines

Definition at line 150 of file helper.cc.

References stringfromfstring().

Referenced by sff_ropenfs__(), sff_rtracefi__(), sff_wopenfs__(), and sff_wtracefi__().

151  {
152  sff::FREE free;
153  char* pfree=lines;
154  for (int ifline=0; ifline<*nline; ++ifline)
155  {
156  free.append(stringfromfstring(pfree, lines_len));
157  pfree += lines_len;
158  }
159  return(free);
160  } // sff::FREE freeblock(integer *nline, char *lines, ftnlen lines_len)
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
Definition: helper.cc:51
Here is the call graph for this function:
Here is the caller graph for this function: