/***************************************************************************
 *                                                                         *
 *   C2BCPY.C                                                              *
 *                                                                         *
 *   Copyright (c) 1987-1997 Galacticomm, Inc.    All Rights Reserved.     *
 *                                                                         *
 *   This is the GCOMM.LIB routine for copying a C-style string to a       *
 *   VB-style string.                                                      *
 *                                                                         *
 *                                            - C. Robert    11/29/93      *
 *                                              T. Stryker                 *
 *                                                                         *
 ***************************************************************************/

#include "gcomm.h"

#define FILREV "$Revision: 5 $"

VOID
c2bcpy(                            /* copy C format string to VB format    */
CHAR *dest,                        /*   destination buffer, VB format      */
const CHAR *src,                   /*   source buffer, C format            */
UINT length)                       /*   length of destination string buffer*/
{
     UINT i;

     for (i=0 ; i < length && *src != '\0' ; i++) {
          *dest++=*src++;
     }
     for ( ; i < length ; i++) {
          *dest++=' ';
     }
}
