src/console/conio.c
char *bstrncpy(char *dest, const char *src, int maxlen)
{
   strncpy(dest, src, maxlen-1);
   dest[maxlen-1] = 0;
   return dest;
}
/*
 * Guarantee that the string is properly terminated */
Guarantee that the string is properly terminated
Guarantee that the string is properly terminated
char *bstrncpy(char *dest, const char *src, int maxlen)
{
   strncpy(dest, src, maxlen-1);
   dest[maxlen-1] = 0;
   return dest;
}
char * bstrncpy ( char * dest , const char * src , int maxlen ) { strncpy ( dest , src , maxlen - 1 ) ; dest [ maxlen - 1 ] = 0 ; return dest ; }
Guarantee that the string is properly terminated
Guarantee that the string is properly terminated