strncpy
void strncpy(char *dst, char *src, int n);
//ENDH
/******************************************
    emulate the strncpy function

    *dst = char pointer to destination
    *src = char pointer to source
    n    = number of bytes to copy

*******************************************/
void strncpy(char *dst, char *src, int n)
{
	int t;
	for(t=0; t<n; t++){
		dst[t]=src[t];
		if(src[t]==0) break;
	}
}
