diff options
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r-- | src/include/gnunet_strings_lib.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 54d2e3034..d68ca5c78 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h | |||
@@ -390,6 +390,24 @@ GNUNET_STRINGS_to_address_ip (const char *addr, | |||
390 | struct sockaddr_storage *r_buf); | 390 | struct sockaddr_storage *r_buf); |
391 | 391 | ||
392 | 392 | ||
393 | /** | ||
394 | * Returns utf-8 encoded arguments. | ||
395 | * Does nothing (returns a copy of argc and argv) on any platform | ||
396 | * other than W32. | ||
397 | * Returned argv has u8argv[u8argc] == NULL. | ||
398 | * Returned argv is a single memory block, and can be freed with a single | ||
399 | * GNUNET_free () call. | ||
400 | * | ||
401 | * @param argc argc (as given by main()) | ||
402 | * @param argv argv (as given by main()) | ||
403 | * @param u8argc a location to store new argc in (though it's th same as argc) | ||
404 | * @param u8argv a location to store new argv in | ||
405 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | ||
406 | */ | ||
407 | int | ||
408 | GNUNET_STRINGS_get_utf8_args (int argc, char *const *argv, int *u8argc, | ||
409 | char *const **u8argv); | ||
410 | |||
393 | /* ifndef GNUNET_UTIL_STRING_H */ | 411 | /* ifndef GNUNET_UTIL_STRING_H */ |
394 | #endif | 412 | #endif |
395 | /* end of gnunet_util_string.h */ | 413 | /* end of gnunet_util_string.h */ |