annotate c/strdup/strdup.h @ 659:e40d082f9161

c: resurrection
author David Demelier <markand@malikania.fr>
date Mon, 15 Jul 2019 21:05:00 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
659
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 /*
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 * strdup.h -- duplicate a string
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 *
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 * Copyright (c) 2011-2019 David Demelier <markand@malikania.fr>
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 *
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 * Permission to use, copy, modify, and/or distribute this software for any
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 * purpose with or without fee is hereby granted, provided that the above
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 * copyright notice and this permission notice appear in all copies.
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 *
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 */
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 #ifndef STRDUP_H
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 #define STRDUP_H
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
21
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 #ifdef __cplusplus
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 extern "C" {
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 #endif
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 char *
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 strdup(const char *);
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
28
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 #ifdef __cplusplus
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 }
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 #endif
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
32
e40d082f9161 c: resurrection
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 #endif /* !STRDUP_H */