Return to test.c CVS log | Up to [local] / OpenXM / src / util |
File: [local] / OpenXM / src / util / test.c (download)
Revision 1.1, Sun Nov 16 07:14:11 2003 UTC (20 years, 7 months ago) by takayama
Added a new function getCommandPath(), which works like the "which" command. |
#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])); }