Commit 07cc7983 07cc79832d17d327640c8a61c5a33612d36f2ace by Sergey Poznyakoff

(__argp_base_name): New function

1 parent e66c276c
...@@ -1334,3 +1334,11 @@ mu_is_proto (const char *p) ...@@ -1334,3 +1334,11 @@ mu_is_proto (const char *p)
1334 return 0; 1334 return 0;
1335 } 1335 }
1336 1336
1337 char *
1338 __argp_base_name (const char *arg)
1339 {
1340 char *p = strrchr (arg, '/');
1341 return p ? p + 1 : arg;
1342 }
1343
1344
......