SetSearchLabels(search, msg, "", TRUE);
SetSearchLabels(search, pmsg, "", TRUE); XtStackFree(pmsg, msg);
DoSearch(search)struct SearchAndReplace * search;{  char msg[BUFSIZ];  Widget tw = XtParent(search->search_popup);  XawTextPosition pos;  XawTextScanDirection dir;  XawTextBlock text;  TextWidget ctx = (TextWidget)tw;  text.ptr = GetStringRaw(search->search_text);  if ((text.format = _XawTextFormat(ctx)) == XawFmtWide)      text.length = wcslen((wchar_t*)text.ptr);  else      text.length = strlen(text.ptr);  text.firstPos = 0;    dir = (XawTextScanDirection)(long) ((XPointer)XawToggleGetCurrent(search->left_toggle) -				R_OFFSET);    pos = XawTextSearch( tw, dir, &text);   /* The Raw string in find.ptr may be WC I can't use here, so I re - call    GetString to get a tame version. */  if (pos == XawTextSearchError)     (void) sprintf( msg, "Could not find string ``%s''.", GetString( search->search_text ) );  else {    if (dir == XawsdRight)      XawTextSetInsertionPoint( tw, pos + text.length);    else      XawTextSetInsertionPoint( tw, pos);        XawTextSetSelection( tw, pos, pos + text.length);    search->selection_changed = FALSE; /* selection is good. */    return(TRUE);  }    XawTextUnsetSelection(tw);  SetSearchLabels(search, msg, "", TRUE);  return(FALSE);}