BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

array.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJ_ARRAY_H__
20#define __PJ_ARRAY_H__
21
26#include <pj/types.h>
27
29
49PJ_DECL(void) pj_array_insert( void *array,
50 unsigned elem_size,
51 unsigned count,
52 unsigned pos,
53 const void *value);
54
64PJ_DECL(void) pj_array_erase( void *array,
65 unsigned elem_size,
66 unsigned count,
67 unsigned pos);
68
81PJ_DECL(pj_status_t) pj_array_find( const void *array,
82 unsigned elem_size,
83 unsigned count,
84 pj_status_t (*matching)(const void *value),
85 void **result);
86
92
93
94#endif /* __PJ_ARRAY_H__ */
95
void pj_array_insert(void *array, unsigned elem_size, unsigned count, unsigned pos, const void *value)
void pj_array_erase(void *array, unsigned elem_size, unsigned count, unsigned pos)
pj_status_t pj_array_find(const void *array, unsigned elem_size, unsigned count, pj_status_t(*matching)(const void *value), void **result)
int pj_status_t
Definition: types.h:68
#define PJ_BEGIN_DECL
Definition: config.h:1284
#define PJ_END_DECL
Definition: config.h:1285
Declaration of basic types and utility.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.