home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / db02_src.zip / utils.cc < prev    next >
C/C++ Source or Header  |  1993-11-05  |  1KB  |  48 lines

  1. /**************************************************************************
  2.  * Source Id :
  3.  *
  4.  * $Id: utils.cc,v 1.2 1993/11/03 12:31:59 davison Exp $
  5.  *-------------------------------------------------------------------------
  6.  * Project Notes :
  7.  *
  8.  *  Diamond Base
  9.  *  ============
  10.  *      A solid database implementation, spurred on by the continuing
  11.  *  Metal (Lead) Base saga.
  12.  *
  13.  *  Project Team :
  14.  *        A. Davison
  15.  *        K. Lentin
  16.  *        D. Platt
  17.  *
  18.  *    Project Commenced : 05-02-1993
  19.  *
  20.  *-------------------------------------------------------------------------
  21.  *  Module Notes :
  22.  *
  23.  *
  24.  *
  25.  *
  26.  *  Original Author :
  27.  *
  28.  *-------------------------------------------------------------------------
  29.  * Revision History:
  30.  *
  31.  * $Log: utils.cc,v $
  32. // Revision 1.2  1993/11/03  12:31:59  davison
  33. // Removed the "extern "c""
  34. //
  35. // Revision 1.1  1993/11/03  10:05:33  kevinl
  36. // Initial revision
  37. //
  38.  **************************************************************************/
  39.  
  40. #include <string.h>
  41.  
  42. char* strNcpy(char* d, char* s, int n) 
  43. {
  44.     char* tmp = strncpy(d, s, n);
  45.     d[n-1] = 0;
  46.     return tmp;
  47. }
  48.