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.
17 int nh_stdout ( void )
23 int nh_open ( char* fname, int wr )
27 f = fopen ( fname, (wr==0) ? "r": ((wr==1) ? "w" : "a") );
31 void nh_close ( FILE* f )
38 void nh_write ( FILE* f, int c )
45 int nh_read ( FILE* f )
56 int nh_malloc ( int n )
63 void nh_free ( int n )
68 void nh_assign ( int p, int offset, int ch )
70 ((char*)p)[offset] = (char)ch;