This is Unofficial EPICS BASE Doxygen Site
reftrack.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * epicsRefSnapshotCurrent ()
 

Function Documentation

char* epicsRefSnapshotCurrent ( )

Fetch and print current snapshot

Returns
NULL or a char* which must be free()'d

Definition at line 267 of file reftrack.cpp.

268 {
269  try {
270  epics::RefSnapshot snap;
271  snap.update();
272  std::ostringstream strm;
273  strm<<snap;
274  const char *str = strm.str().c_str();
275  char *ret = (char*)malloc(strlen(str)+1);
276  if(ret)
277  strcpy(ret, str);
278  return ret;
279  }catch(std::exception& e){
280  return epicsStrDup(e.what());
281  }
282 }
#define str(v)
char * epicsStrDup(const char *s)
Definition: epicsString.c:233