diff highlight.c @ 3:328eadb3f37e src

Added initial example programs directory and make sure all debug/error output goes to stderr.
author richwareham
date Mon, 01 Apr 2002 18:56:28 +0000
parents 3ddf0eaece51
children 6f0fb88d1463
line wrap: on
line diff
--- a/highlight.c	Wed Mar 20 23:41:30 2002 +0000
+++ b/highlight.c	Mon Apr 01 18:56:28 2002 +0000
@@ -182,7 +182,7 @@
    return S_ERR;
   }
  
-  printf("Button select %i\n", button); 
+  fprintf(stderr,"Button select %i\n", button); 
   
   /* Set the highlight SPRM if the passed button was valid*/
   if((button <= 0) || (button > self->pci.hli.hl_gi.btn_ns)) {
@@ -214,7 +214,7 @@
   self->hli_buttonN = button;
   self->highlight_changed = 1;
 #ifdef BUTTON_TESTING
-  printf("highlight.c:Highlight area is (%u,%u)-(%u,%u), display = %i, button = %u\n",
+  fprintf(stderr,"highlight.c:Highlight area is (%u,%u)-(%u,%u), display = %i, button = %u\n",
 	       button_ptr->x_start, button_ptr->y_start,
 	       button_ptr->x_end, button_ptr->y_end,
 	       1,