| 167 | } |
| 168 | |
| 169 | int func_write(int i, const char* arg, size_t len, char* buf) |
| 170 | { |
| 171 | try { |
| 172 | return static_cast<int>(copyString(FuncCabinet::at(i)->write(arg), buf, len)); |
| 173 | } catch (...) { |
| 174 | return handleAllExceptions(-1, ERR); |
| 175 | } |
| 176 | } |
| 177 | } |