Avis Client Library: avis/arrays.h Source File

- Main Page
- Data Structures
- Files

# avis/arrays.h

Go to the documentation of this file.

    00001 /*
    00002  *  Avis Elvin client library for C.
    00003  *
    00004  *  Copyright (C) 2008 Matthew Phillips <avis@mattp.name>
    00005  *
    00006  *  This program is free software; you can redistribute it and/or
    00007  *  modify it under the terms of version 3 of the GNU Lesser General
    00008  *  Public License as published by the Free Software Foundation.
    00009  *
    00010  *  This program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    00013  *  General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU General Public License
    00016  *  along with this program. If not, see <http://www.gnu.org/licenses/>.
    00017  */
    00018 #ifndef AVIS_ARRAYS_H_
    00019 #define AVIS_ARRAYS_H_
    00020
    00021 #include <avis/defs.h>
    00022
    00026 typedef struct
    00027 {
    00029   void * items;
    00030
    00032   size_t item_count;
    00033 } Array;
    00034
    00039 typedef struct
    00040 {
    00041   void * items;
    00042   size_t items_length;
    00043   size_t item_count;
    00044 } ArrayList;
    00045
    00049 AVIS_PUBLIC
    00050 void *avis_memdup (const void *source, size_t length);
    00051
    00052 #endif /*AVIS_ARRAYS_H_*/