5 * Revision 1.1.2.1 2002/07/11 17:15:24 alibrary
8 * Revision 1.1.1.1 1999/05/18 15:55:29 fca
11 * Revision 1.1.1.1 1996/02/15 17:49:40 mclareni
15 #include "kerngen/pilot.h"
17 CERN PROGLIB# FCHPUT .VERSION KERNFOR 4.31 911111
20 Copy a zero-terminated C character string
21 to a Fortran character string of length NTEXT,
22 return length and blank-fill
25 #include "kerngen/fortchar.h"
26 int fchput(pttext,ftext,lgtext)
28 #if defined(CERNLIB_QMCRY)
31 #if !defined(CERNLIB_QMCRY)
42 #if defined(CERNLIB_QMCRY)
43 utext = _fcdtocp(ftext);
45 #if !defined(CERNLIB_QMCRY)
48 if (pttext == NULL) goto out;
50 /*-- copy the text to the caller */
51 for (jcol = 0; jcol < limit; jcol++)
52 { if (*pttext == '\0') break;
57 for (; jcol < limit; jcol++) *utext++ = ' ';
60 /*> END <----------------------------------------------------------*/