2 /* This is a hack. I totally deny writing it. If this code breaks,
3 * you get to keep all the pieces. JRS, 23 feb 99.
18 int nh_stdout ( void )
24 int nh_stderr ( void )
30 int nh_open ( char* fname, int wr )
34 f = fopen ( fname, (wr==0) ? "r": ((wr==1) ? "w" : "a") );
38 void nh_close ( FILE* f )
45 void nh_flush ( FILE* f )
51 void nh_write ( FILE* f, int c )
58 int nh_read ( FILE* f )
69 int nh_malloc ( int n )
76 void nh_free ( int n )
81 void nh_store ( int p, int ch )
88 return (int)(*(char*)p);
91 int nh_getenv ( int p )
93 return (int)getenv ( (const char *)p );
97 extern char** prog_argv;
104 int nh_argvb ( int argno, int offset )
106 return (int)(prog_argv[argno][offset]);