MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / Write_GlobalComment

Function Write_GlobalComment

lib/QuaZip/quazip/zip.c:1930–1946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1928}
1929
1930int Write_GlobalComment(zip64_internal* zi, const char* global_comment)
1931{
1932 int err = ZIP_OK;
1933 uInt size_global_comment = 0;
1934
1935 if(global_comment != NULL)
1936 size_global_comment = (uInt)strlen(global_comment);
1937
1938 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_global_comment,2);
1939
1940 if (err == ZIP_OK && size_global_comment > 0)
1941 {
1942 if (ZWRITE64(zi->z_filefunc,zi->filestream, global_comment, size_global_comment) != size_global_comment)
1943 err = ZIP_ERRNO;
1944 }
1945 return err;
1946}
1947
1948extern int ZEXPORT zipClose (zipFile file, const char* global_comment)
1949{

Callers 1

zipCloseFunction · 0.85

Calls 1

zip64local_putValueFunction · 0.85

Tested by

no test coverage detected