/***************************************************************************
 *                                                                         *
 *   C2BCVT.C                                                              *
 *                                                                         *
 *   Copyright (c) 1987-1997 Galacticomm, Inc.    All Rights Reserved.     *
 *                                                                         *
 *   This is the GCOMM.LIB routine for converting a C-style string to a    *
 *   fixed length (blank padded) VB-style string in place.                 *
 *                                                                         *
 *                                            - J. Alvrus   2/22/94        *
 *                                                                         *
 ***************************************************************************/

#include "gcomm.h"

#define FILREV "$Revision: 5 $"

CHAR *                             /*   returns a pointer to string        */
c2bcvt(                            /* cvt C format string to a VB format   */
CHAR *str,                         /*   pointer to string to convert       */
INT bufsiz)                        /*   size of string buffer              */
{
     UINT len;

     len=strlen(str);
     if (len < (UINT)bufsiz) {
          setmem(str+len,bufsiz-len,' ');
     }
     return(str);
}
