1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Added the base_dir_nametest test program.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15154 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-09-25 18:20:09 +00:00
parent b8ba11b158
commit 0b833b8680
2 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,20 @@
/*
* $Id: base_dir_nametest.c,v 1.1 2006-09-25 18:20:09 obarthel Exp $
*
* :ts=4
*/
#include <unistd.h>
#include <libgen.h>
#include <stdio.h>
int
main(int argc,char ** argv)
{
int i;
for(i = 1 ; i < argc ; i++)
printf("%s\n\tbasename=%s\n\t dirname=%s\n",argv[i],basename(argv[i]),dirname(argv[i]));
return(0);
}