aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-14 15:17:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-14 15:17:08 +0000
commitaa37d3d42f37ace8dc196320f1677e4e14fe77c8 (patch)
tree20853c6f5f7cd2a4a59df93dea76784c5ea7215a /src/include/gnunet_strings_lib.h
parent3c61c59e70103d21f9b3f645108f51f7a34b77fc (diff)
downloadgnunet-aa37d3d42f37ace8dc196320f1677e4e14fe77c8.tar.gz
gnunet-aa37d3d42f37ace8dc196320f1677e4e14fe77c8.zip
LRN: add function GNUNET_STRINGS_get_short_name to get basename
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index edeccaf3b..8101a8113 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -199,6 +199,20 @@ GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t);
199char * 199char *
200GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta); 200GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta);
201 201
202/**
203 * "man basename"
204 * Returns a pointer to a part of filename (allocates nothing)!
205 *
206 * @param filename filename to extract basename from
207 * @return short (base) name of the file (that is, everything following the
208 * last directory separator in filename. If filename ends with a
209 * directory separator, the result will be a zero-length string.
210 * If filename has no directory separators, the result is filename
211 * itself.
212 */
213const char *
214GNUNET_STRINGS_get_short_name (const char *filename);
215
202#if 0 /* keep Emacsens' auto-indent happy */ 216#if 0 /* keep Emacsens' auto-indent happy */
203{ 217{
204#endif 218#endif