MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / drop

Method drop

src/isql/InputDevices.cpp:108–114  ·  view source on GitHub ↗

Drop a file associated with an indev.

Source from the content-addressed store, hash-verified

106
107// Drop a file associated with an indev.
108void InputDevices::indev::drop()
109{
110 fb_assert(indev_fpointer != stdin);
111 fb_assert(!indev_fn.isEmpty()); // Some name should exist.
112 fclose(indev_fpointer);
113 unlink(indev_fn.c_str());
114}
115
116// Save the reading position in the parameter.
117void InputDevices::indev::getPos(fpos_t* out) const

Callers

nothing calls this directly

Calls 4

fcloseFunction · 0.85
unlinkFunction · 0.50
isEmptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected