libdebian-installer
include
debian-installer
string.h
1
/*
2
* string.h
3
*
4
* Copyright (C) 2003 Bastian Blank <waldi@debian.org>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef DEBIAN_INSTALLER__STRING_H
21
#define DEBIAN_INSTALLER__STRING_H
22
23
#include <debian-installer/types.h>
24
25
#include <stdio.h>
26
27
typedef
struct
di_rstring
di_rstring
;
28
37
struct
di_rstring
38
{
39
char
*
string
;
40
di_ksize_t
size
;
41
};
42
51
int
di_snprintfcat
(
char
*str,
size_t
size,
const
char
*format, ...)
52
#ifdef __GNUC__
53
__attribute__ ((format (printf, 3, 4)))
54
#endif
55
;
56
64
char
*
di_stradup
(
const
char
*s,
size_t
n);
65
67
#endif
di_snprintfcat
int di_snprintfcat(char *str, size_t size, const char *format,...)
Definition:
string.c:32
di_rstring::string
char * string
Definition:
string.h:39
di_new
#define di_new(struct_type, n_structs)
Definition:
mem.h:73
di_ksize_t
uint32_t di_ksize_t
Definition:
types.h:78
di_rstring
raw string
Definition:
string.h:38
di_rstring::size
di_ksize_t size
Definition:
string.h:40
di_stradup
char * di_stradup(const char *s, size_t n)
Definition:
string.c:45
Generated by
1.8.20