changeset 80:12f1af4ffc6d

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 04 May 2013 03:38:41 +0300
parents 909ae72c0763
children c9c0541bed90
files th_string.c th_string.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Sat May 04 03:37:21 2013 +0300
+++ b/th_string.c	Sat May 04 03:38:41 2013 +0300
@@ -8,7 +8,8 @@
 #include "th_util.h"
 #include "th_string.h"
 
-/* strdup with a NULL check
+
+/* Implementation of strdup() with a NULL check
  */
 char *th_strdup(const char *s)
 {
--- a/th_string.h	Sat May 04 03:37:21 2013 +0300
+++ b/th_string.h	Sat May 04 03:38:41 2013 +0300
@@ -42,6 +42,7 @@
 
 /* Normal NUL-terminated string functions
  */
+char    *th_strdup(const char *);
 int     th_strcasecmp(const char *, const char *);
 int     th_strncasecmp(const char *, const char *, size_t);
 void    th_strip_ctrlchars(char *);
@@ -52,7 +53,6 @@
 void    th_pstr_vprintf(char **, const char *, va_list);
 void    th_pstr_printf(char **, const char *, ...);
 
-char    *th_strdup(const char *);
 int     th_pstrcpy(char **, const char *);
 int     th_pstrcat(char **, const char *);