ocaml/stdlib/header.c

23 lines
951 B
C

/***********************************************************************/
/* */
/* Objective Caml */
/* */
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1996 Institut National de Recherche en Informatique et */
/* Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
/* $Id$ */
char runtime_name [] = RUNTIME_NAME;
char errmsg [] = "Cannot exec ocamlrun.\n";
int main(int argc, char ** argv)
{
execv(runtime_name, argv);
write(2, errmsg, sizeof(errmsg)-1);
return 2;
}