src/experiments/k4/K4GUI/src/mycommands.cc
char *read_text_from_widget(PtWidget_t *widget)
{
      PtArg_t args[1];
      char *str;
  
      PtSetArg(&args[0], Pt_ARG_TEXT_STRING, &str, 0);
      PtGetResources(widget, 1, args);
      return(str);
}
/* utility function for reading from a text widget */
utility function for reading from a text widget
utility function for reading from a text widget
char *read_text_from_widget(PtWidget_t *widget)
{
      PtArg_t args[1];
      char *str;
      PtSetArg(&args[0], Pt_ARG_TEXT_STRING, &str, 0);
      PtGetResources(widget, 1, args);
      return(str);
}
char * read_text_from_widget ( PtWidget_t * widget ) { PtArg_t args [ 1 ] ; char * str ; PtSetArg ( & args [ 0 ] , Pt_ARG_TEXT_STRING , & str , 0 ) ; PtGetResources ( widget , 1 , args ) ; return ( str ) ; }
utility function for reading from a text widget
utility function for reading from a text widget