#ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "misc.h" /***********************************************************/ /* routine copiant par troncature une chaine de caracteres */ /***********************************************************/ void strncpy_max(char *destination, const char *source, int max_byte) { strncpy(destination,source,max_byte-1); destination[max_byte-1]='\0'; }