~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/gis/copy.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/**
3
 
 * \file copy.c
4
 
 *
5
 
 * \brief GIS Library - Memory copy functions.
6
 
 *
7
 
 * (C) 2001-2008 by the GRASS Development Team
8
 
 *
9
 
 * This program is free software under the GNU General Public License
10
 
 * (>=v2). Read the file COPYING that comes with GRASS for details.
11
 
 *
12
 
 * \author GRASS GIS Development Team
13
 
 *
14
 
 * \date 1999-2008
15
 
 */
16
 
 
17
 
#include <grass/gis.h>
18
 
#include <string.h>
19
 
 
20
 
/**
21
 
 * \brief Copies <b>n</b> bytes starting at address <b>b</b> into 
22
 
 * address <b>a</b>.
23
 
 *
24
 
 * \param[out] a destination (to)
25
 
 * \param[in]  b source (from)
26
 
 * \param[in]  n number of bytes to copy
27
 
 *
28
 
 * \return always returns 0
29
 
 */
30
 
int G_copy(void *a, const void *b, int n)
31
 
{
32
 
    memcpy(a, b, n);
33
 
    return 0;
34
 
}