ekg2
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
remote
xmalloc.h
Idź do dokumentacji tego pliku.
1
/* $Id: xmalloc.h 4520 2008-08-27 09:16:57Z peres $ */
2
3
/*
4
* (C) Copyright 2001-2002 Wojtek Kaniewski <wojtekka@irc.pl>
5
* 2004 Piotr Kupisiewicz <deli@rzepaknet.us>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License Version 2 as
9
* published by the Free Software Foundation.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
*/
20
21
#ifndef __EKG_XMALLOC_H
22
#define __EKG_XMALLOC_H
23
24
#include <sys/types.h>
25
#include <stddef.h>
26
#include <stdarg.h>
27
28
#define EXPORTNOT __attribute__ ((visibility("hidden")))
29
30
void
*
xcalloc
(
size_t
nmemb,
size_t
size);
31
void
*
xmalloc
(
size_t
size);
32
void
*
xmalloc2
(
size_t
size);
33
void
xfree
(
void
*ptr);
34
void
*
xrealloc
(
void
*ptr,
size_t
size);
35
char
*
xstrdup
(
const
char
*s);
36
char
*
xstrndup
(
const
char
*s,
size_t
n);
37
void
*
xmemdup
(
void
*ptr,
size_t
size);
38
39
int
xstrcasecmp
(
const
char
*s1,
const
char
*s2);
40
char
*
xstrcat
(
char
*dest,
const
char
*src);
41
char
*
xstrchr
(
const
char
*s,
int
c
);
42
int
xstrcmp
(
const
char
*s1,
const
char
*s2);
43
char
*
xstrcpy
(
char
*dest,
const
char
*src);
44
size_t
xstrlen
(
const
char
*s);
45
int
xstrncasecmp_pl
(
const
char
*s1,
const
char
*s2,
size_t
n);
46
char
*
xstrncat
(
char
*dest,
const
char
*src,
size_t
n);
47
int
xstrncmp
(
const
char
*s1,
const
char
*s2,
size_t
n);
48
int
xstrncasecmp
(
const
char
*s1,
const
char
*s2,
size_t
n);
49
char
*
xstrrchr
(
const
char
*s,
int
c
);
50
char
*
xstrstr
(
const
char
*haystack,
const
char
*needle);
51
char
*
xstrcasestr
(
const
char
*haystack,
const
char
*needle);
52
53
char
*
vsaprintf
(
const
char
*
format
, va_list ap);
54
55
/* stuff.h */
56
#ifdef __GNUC__
57
char
*
saprintf
(
const
char
*
format
, ...)
__attribute__
((format (printf, 1, 2)));
58
#else
59
char
*
saprintf
(
const
char
*format, ...);
60
#endif
61
62
#endif
/* __EKG_XMALLOC_H */
63
64
/*
65
* Local Variables:
66
* mode: c
67
* c-file-style: "k&r"
68
* c-basic-offset: 8
69
* indent-tabs-mode: t
70
* End:
71
*/
Wygenerowano N, 10 lut 2013 05:08:19 dla ekg2 programem
1.8.3.1