1ZIP_SOURCE_DATA(3)         Library Functions Manual         ZIP_SOURCE_DATA(3)
2
3
4

NAME

6       zip_source_buffer - create zip data source from buffer
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       #include <zip.h>
13
14       struct  zip_source  * zip_source_buffer(struct zip *archive, const void
15       *data, off_t len); "int freep"
16

DESCRIPTION

18       The function zip_source_buffer creates a zip  source  from  the  buffer
19       data  of size len.  If freep is non-zero, the buffer will be freed when
20       it is no longer needed.
21

RETURN VALUES

23       Upon successful completion, the created source is returned.  Otherwise,
24       NULL  is  returned and the error code in archive is set to indicate the
25       error.
26

ERRORS

28       zip_source_buffer fails if:
29
30              [ZIP_ER_INVAL]
31                  len is negative, or len is greater than  zero  and  data  is
32                  NULL.
33
34              [ZIP_ER_MEMORY]
35                  Required memory could not be allocated.
36

SEE ALSO

38       libzip(3),      zip_add(3),     zip_replace(3),     zip_source_file(3),
39       zip_source_filep(3),    zip_source_free(3),     zip_source_function(3),
40       zip_source_zip(3)
41

AUTHORS

43       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
44
45
46
47NiH                              July 20, 2005              ZIP_SOURCE_DATA(3)
Impressum