diff 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
line wrap: on
line diff
--- a/port/C/strndup.h	Wed Jun 15 11:59:17 2016 +0200
+++ b/port/C/strndup.h	Wed Jun 15 13:13:26 2016 +0200
@@ -1,7 +1,7 @@
 /*
  * strndup.h -- duplicate a string
  *
- * Copyright (c) 2011, 2012, David Demelier <markand@malikania.fr>
+ * Copyright (c) 2011-2016 David Demelier <markand@malikania.fr>
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -16,12 +16,18 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifndef STRNDUP_H
+#define STRNDUP_H
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-char	*strndup(const char *, size_t);
+char *
+strndup(const char *, size_t);
 
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* !STRNDUP_H */
\ No newline at end of file