Allow specifying * instead of any of the MENU COLOR fields.
[syslinux.git] / com32 / lib / strncpy.c
bloba8fe45fcbb588bccb28c9fadaf821adef5e0df10
1 /*
2 * strncpy.c
4 * strncpy()
5 */
7 #include <string.h>
9 char *strncpy(char *dst, const char *src, size_t n)
11 char *q = dst;
12 const char *p = src;
13 char ch;
15 while ( n-- ) {
16 *q++ = ch = *p++;
17 if ( !ch )
18 break;
21 return dst;