Q:
could you please give me an example of a program that uses:
void strncpy (char *dest, char *src, int n)
A:
#include <stdio.h>
main(){
char a[80];
strncmp(a,"supercalifragilisticexpialidosus",10);
printf("%s\n",a);
}
Regards,
Peter
[ back to toc ]