Pol  Revision:cb584c9
stracpy.cpp
Go to the documentation of this file.
1 
7 #include <assert.h>
8 #include <string.h>
9 
10 #include "Header_Windows.h"
11 #include "clib.h"
12 
13 namespace Pol
14 {
15 namespace Clib
16 {
17 char* stracpy( char* dest, const char* src, size_t maxlen )
18 {
19  assert( dest );
20  if ( maxlen )
21  {
22  strncpy( dest, src, maxlen - 1 );
23  dest[maxlen - 1] = '\0';
24  }
25  return dest;
26 }
27 }
28 }
char * stracpy(char *dest, const char *src, size_t maxlen)
Definition: stracpy.cpp:17
Definition: berror.cpp:12