libdebian-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
27typedef struct di_rstring di_rstring;
28
38{
39 char *string;
41};
42
51int di_snprintfcat (char *str, size_t size, const char *format, ...)
52#ifdef __GNUC__
53 __attribute__ ((format (printf, 3, 4)))
54#endif
55 ;
56
64char *di_stradup (const char *s, size_t n);
65
67#endif
char * di_stradup(const char *s, size_t n)
Definition: string.c:45
int di_snprintfcat(char *str, size_t size, const char *format,...)
Definition: string.c:32
uint32_t di_ksize_t
Definition: types.h:78
raw string
Definition: string.h:38
di_ksize_t size
Definition: string.h:40
char * string
Definition: string.h:39