/ writeEntry: Deflate the buffer to the zip file. */ /
| 430 | /* writeEntry: Deflate the buffer to the zip file. */ |
| 431 | /***********************************************************************/ |
| 432 | int ZIPUTIL::writeEntry(PGLOBAL g, char *buf, int len) |
| 433 | { |
| 434 | if (zipWriteInFileInZip(zipfile, buf, len) < 0) { |
| 435 | snprintf(g->Message, sizeof(g->Message), "Error writing %s in the zipfile", target); |
| 436 | return RC_FX; |
| 437 | } // endif zipWriteInFileInZip |
| 438 | |
| 439 | return RC_OK; |
| 440 | } // end of writeEntry |
| 441 | |
| 442 | /***********************************************************************/ |
| 443 | /* Close the zip file. */ |
no test coverage detected