This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/kanji/jstrncpy.c

13 lines
312 B
C
Raw Normal View History

#include <stdio.h>
#include <jstring.h>
void main()
{
JCHAR buffer[15];
printf( "%s\n", jstrncpy( buffer, "abcdefg", 10 ) );
printf( "%s\n", jstrncpy( buffer, "1234567", 6 ) );
printf( "%s\n", jstrncpy( buffer, "abcdefg", 3 ) );
printf( "%s\n", jstrncpy( buffer, "*******", 0 ) );
}