/* * $Id: cfort.c,v 1.1.1.1 1996/03/01 11:39:06 mclareni Exp $ * * $Log: cfort.c,v $ * Revision 1.1.1.1 1996/03/01 11:39:06 mclareni * Paw * */ /*CMZ : 2.07/00 18/04/95 17.36.40 by O.Couet*/ /*-- Author : Gregory Kozlovsky 09/04/95*/ /******************************************************************************* Interface between Fit Panel and HBOOK, PAW, and MINUIT. =====================> Author: G. Kozlovsky, 1994 <=========================== *******************************************************************************/ #include #include #include #include #ifdef __cplusplus extern "C" { #endif #include "hmotif/uxxt.h" #include "fpanelsh/errordb.h" #include "fpanelsh/fplocal.h" #define CONTEXT_MACRO_ACCESS 1 #include "fpanelsh/parlineform.h" #undef UxParent #include "fpanelsh/mainpanel.h" #undef CONTEXT_MACRO_ACCESS #ifdef __cplusplus } /* extern "C" */ #endif /*********************************************************************** Convert Fortran string to C string ***********************************************************************/ char *strftoc(char *s, int l) { while (l-- && s[l] == ' '); s[l+1] = '\0'; return(s); } /*********************************************************************** Convert C string to Fortran string ***********************************************************************/ char *strctof(char *s, int l) { char *sp = s; while (*sp) sp++; /* find first trailing character */ while (sp-s