[ back to toc ]

using strncpy

Date: 2002/02/06 22:32

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 ]