+#include "nessie_common.h"
+#include "hexdigit_tab.h"
+
+#define nessie_out_file stdout
+
+void nessie_set_output_stream(FILE* out_stream){
+ nessie_out_file = out_stream;
+}
+
+
+#ifdef NESSIE_ALIVE
+void nessie_send_alive(void){
+ putc(NESSIE_ALIVE_CHAR, nessie_out_file);
+}
+
+void nessie_send_alive_a(uint16_t i){
+ if((i&31)==0)
+ putc(NESSIE_ALIVE_CHAR, nessie_out_file);
+}
+#endif