comparison port/C/strndup.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 * strndup.h -- duplicate a string 2 * strndup.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 STRNDUP_H
20 #define STRNDUP_H
21
19 #ifdef __cplusplus 22 #ifdef __cplusplus
20 extern "C" { 23 extern "C" {
21 #endif 24 #endif
22 25
23 char *strndup(const char *, size_t); 26 char *
27 strndup(const char *, size_t);
24 28
25 #ifdef __cplusplus 29 #ifdef __cplusplus
26 } 30 }
27 #endif 31 #endif
32
33 #endif /* !STRNDUP_H */