MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / Write_GlobalComment

Function Write_GlobalComment

extlibs/minizip/src/zip.c:1850–1866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848}
1849
1850int Write_GlobalComment(zip64_internal* zi, const char* global_comment)
1851{
1852 int err = ZIP_OK;
1853 uInt size_global_comment = 0;
1854
1855 if (global_comment != NULL)
1856 size_global_comment = (uInt)strlen(global_comment);
1857
1858 err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (uLong)size_global_comment, 2);
1859
1860 if (err == ZIP_OK && size_global_comment > 0)
1861 {
1862 if (ZWRITE64(zi->z_filefunc,zi->filestream, global_comment, size_global_comment) != size_global_comment)
1863 err = ZIP_ERRNO;
1864 }
1865 return err;
1866}
1867
1868extern int ZEXPORT zipClose(zipFile file, const char* global_comment)
1869{

Callers 1

zipCloseFunction · 0.85

Calls 1

zip64local_putValueFunction · 0.85

Tested by

no test coverage detected