Mercurial > code
comparison port/C/strdup.h @ 548:f48bb09bccc7
Misc: huge cleanup, switch to spaces
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 15 Jun 2016 13:13:26 +0200 |
parents | dc1b5143c5e3 |
children | 266f32919d0a |
comparison
equal
deleted
inserted
replaced
547:ecf5fb9319da | 548:f48bb09bccc7 |
---|---|
1 /* | 1 /* |
2 * strdup.h -- duplicate a string | 2 * strdup.h -- duplicate a string |
3 * | 3 * |
4 * Copyright (c) 2011, 2012, David Demelier <markand@malikania.fr> | 4 * Copyright (c) 2011-2016 David Demelier <markand@malikania.fr> |
5 * | 5 * |
6 * Permission to use, copy, modify, and/or distribute this software for any | 6 * Permission to use, copy, modify, and/or distribute this software for any |
7 * purpose with or without fee is hereby granted, provided that the above | 7 * purpose with or without fee is hereby granted, provided that the above |
8 * copyright notice and this permission notice appear in all copies. | 8 * copyright notice and this permission notice appear in all copies. |
9 * | 9 * |
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 */ | 17 */ |
18 | 18 |
19 #ifndef STRDUP_H | |
20 #define STRDUP_H | |
21 | |
19 #ifdef __cplusplus | 22 #ifdef __cplusplus |
20 extern "C" { | 23 extern "C" { |
21 #endif | 24 #endif |
22 | 25 |
23 char *strdup(const char *); | 26 char * |
27 strdup(const char *); | |
24 | 28 |
25 #ifdef __cplusplus | 29 #ifdef __cplusplus |
26 } | 30 } |
27 #endif | 31 #endif |
28 | 32 |
33 #endif /* !STRDUP_H */ |