[BACK]Return to test.c CVS log [TXT][DIR] 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, 6 months ago) by takayama
Branch: MAIN

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]));
}