diff options
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r-- | src/include/gnunet_strings_lib.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index dd78aee35..6413fb102 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h | |||
@@ -56,7 +56,8 @@ extern "C" | |||
56 | * @param size number of bytes | 56 | * @param size number of bytes |
57 | * @return fancy representation of the size (possibly rounded) for humans | 57 | * @return fancy representation of the size (possibly rounded) for humans |
58 | */ | 58 | */ |
59 | char *GNUNET_STRINGS_byte_size_fancy (unsigned long long size); | 59 | char * |
60 | GNUNET_STRINGS_byte_size_fancy (unsigned long long size); | ||
60 | 61 | ||
61 | 62 | ||
62 | /** | 63 | /** |
@@ -69,8 +70,8 @@ char *GNUNET_STRINGS_byte_size_fancy (unsigned long long size); | |||
69 | * @param charset character set to convert from | 70 | * @param charset character set to convert from |
70 | * @return the converted string (0-terminated) | 71 | * @return the converted string (0-terminated) |
71 | */ | 72 | */ |
72 | char *GNUNET_STRINGS_to_utf8 (const char *input, size_t len, | 73 | char * |
73 | const char *charset); | 74 | GNUNET_STRINGS_to_utf8 (const char *input, size_t len, const char *charset); |
74 | 75 | ||
75 | 76 | ||
76 | /** | 77 | /** |
@@ -81,7 +82,8 @@ char *GNUNET_STRINGS_to_utf8 (const char *input, size_t len, | |||
81 | * @return the full file name, | 82 | * @return the full file name, |
82 | * NULL is returned on error | 83 | * NULL is returned on error |
83 | */ | 84 | */ |
84 | char *GNUNET_STRINGS_filename_expand (const char *fil); | 85 | char * |
86 | GNUNET_STRINGS_filename_expand (const char *fil); | ||
85 | 87 | ||
86 | /** | 88 | /** |
87 | * Fill a buffer of the given size with | 89 | * Fill a buffer of the given size with |
@@ -104,8 +106,8 @@ char *GNUNET_STRINGS_filename_expand (const char *fil); | |||
104 | * @return number of bytes written to the buffer | 106 | * @return number of bytes written to the buffer |
105 | * (or number of bytes that would have been written) | 107 | * (or number of bytes that would have been written) |
106 | */ | 108 | */ |
107 | size_t GNUNET_STRINGS_buffer_fill (char *buffer, size_t size, | 109 | size_t |
108 | unsigned int count, ...); | 110 | GNUNET_STRINGS_buffer_fill (char *buffer, size_t size, unsigned int count, ...); |
109 | 111 | ||
110 | 112 | ||
111 | /** | 113 | /** |
@@ -122,8 +124,9 @@ size_t GNUNET_STRINGS_buffer_fill (char *buffer, size_t size, | |||
122 | * @return offset of the character after the last 0-termination | 124 | * @return offset of the character after the last 0-termination |
123 | * in the buffer, or 0 on error. | 125 | * in the buffer, or 0 on error. |
124 | */ | 126 | */ |
125 | unsigned int GNUNET_STRINGS_buffer_tokenize (const char *buffer, size_t size, | 127 | unsigned int |
126 | unsigned int count, ...); | 128 | GNUNET_STRINGS_buffer_tokenize (const char *buffer, size_t size, |
129 | unsigned int count, ...); | ||
127 | 130 | ||
128 | 131 | ||
129 | 132 | ||
@@ -134,7 +137,8 @@ unsigned int GNUNET_STRINGS_buffer_tokenize (const char *buffer, size_t size, | |||
134 | * @param t the absolute time to convert | 137 | * @param t the absolute time to convert |
135 | * @return timestamp in human-readable form | 138 | * @return timestamp in human-readable form |
136 | */ | 139 | */ |
137 | char *GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t); | 140 | char * |
141 | GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t); | ||
138 | 142 | ||
139 | 143 | ||
140 | /** | 144 | /** |
@@ -143,8 +147,8 @@ char *GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t); | |||
143 | * @param delta time in milli seconds | 147 | * @param delta time in milli seconds |
144 | * @return string in human-readable form | 148 | * @return string in human-readable form |
145 | */ | 149 | */ |
146 | char *GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative | 150 | char * |
147 | delta); | 151 | GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta); |
148 | 152 | ||
149 | #if 0 /* keep Emacsens' auto-indent happy */ | 153 | #if 0 /* keep Emacsens' auto-indent happy */ |
150 | { | 154 | { |