0001 BVCPY(3)
0002 ========
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 Bvcpy - perform VIEW buffer copy from one to another
0009
0010
0011 SYNOPSIS
0012 --------
0013
0014 #include <ubf.h>
0015
0016 long Bvcpy(char *'cstruct_dst', char *'cstruct_src', char *'view')
0017
0018 Link with '-lubf -lnstd -lm -lpthread'
0019
0020 DESCRIPTION
0021 -----------
0022 Function copies memory data from VIEW/C structure instances of 'cstruct_src' to
0023 'cstruct_dst' instance. The size to copy is taken from 'view' name. Note that it
0024 is up to developer to ensure that both buffers are in correct size, otherwise
0025 memory overflow is possible and program might terminate with segmentation fault.
0026
0027 RETURN VALUE
0028 ------------
0029 On success, *Bvcpy()* return number of bytes copied; on error,
0030 -1 is returned, with *Berror* set to indicate the error.
0031
0032 ERRORS
0033 ------
0034 Note that *Bstrerror()* returns generic error message plus custom message with
0035 debug info from last function call.
0036
0037 *BEINVAL* 'view' is NULL or empty, 'cstruct_src' is null or 'cstruct_dst' is null.
0038
0039 *BBADVIEW* View specified in 'view' paramter not found.
0040
0041
0042 EXAMPLE
0043 -------
0044 See *atmitest/test040_typedview/vaccutil.c* for sample code.
0045
0046 BUGS
0047 ----
0048 Report bugs to support@mavimax.com
0049
0050 SEE ALSO
0051 --------
0052 *CBvchg(3)* *Bvsizeof(3)*
0053
0054 COPYING
0055 -------
0056 (C) Mavimax, Ltd
0057