diff options
Diffstat (limited to 'src/gnunet_chat_util.c')
-rw-r--r-- | src/gnunet_chat_util.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c index 810c4f3..f8d98f2 100644 --- a/src/gnunet_chat_util.c +++ b/src/gnunet_chat_util.c | |||
@@ -185,6 +185,24 @@ util_decrypt_file (const char *filename, | |||
185 | } | 185 | } |
186 | 186 | ||
187 | int | 187 | int |
188 | util_get_dirname (const char *directory, | ||
189 | const char *subdir, | ||
190 | char **filename) | ||
191 | { | ||
192 | GNUNET_assert((filename) && | ||
193 | (directory) && | ||
194 | (subdir)); | ||
195 | |||
196 | return GNUNET_asprintf ( | ||
197 | filename, | ||
198 | "%s%c%s", | ||
199 | directory, | ||
200 | DIR_SEPARATOR, | ||
201 | subdir | ||
202 | ); | ||
203 | } | ||
204 | |||
205 | int | ||
188 | util_get_filename (const char *directory, | 206 | util_get_filename (const char *directory, |
189 | const char *subdir, | 207 | const char *subdir, |
190 | const struct GNUNET_HashCode *hash, | 208 | const struct GNUNET_HashCode *hash, |