This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/_fullpat.c

18 lines
307 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <stdlib.h>
void main( int argc, char *argv[] )
{
int i;
char buff[ PATH_MAX ];
for( i = 1; i < argc; ++i ) {
puts( argv[i] );
if( _fullpath( buff, argv[i], PATH_MAX ) ) {
puts( buff );
} else {
puts( "FAIL!" );
}
}
}