File: [local] / OpenXM / src / util / test.c (download)
Revision 1.3, Mon Nov 24 11:47:35 2003 UTC (20 years, 7 months ago) by takayama
Branch: MAIN
Changes since 1.2: +4 -1
lines
Added a new function oxWhich(cmdname,path).
|
/* $OpenXM: OpenXM/src/util/test.c,v 1.3 2003/11/24 11:47:35 takayama Exp $ */
#include <stdio.h>
#include "ox_pathfinder.h"
sGC_malloc(int a) {
return GC_malloc(a);
}
/* which command */
main(int argc,char *argv[]) {
if (argc != 2) {
fprintf(stderr,"test cmdname");
}
printf("%s\n",getCommandPath(argv[1]));
printf("%s (cyg) ==> %s (win)\n",argv[1],cygwinPathToWinPath(argv[1]));
printf("%s (win) ==> %s (cyg)\n",argv[1],winPathToCygwinPath(argv[1]));
}