#include <stdio.h>
#include <stdlib.h>
void strncpy(char *s,char *t);
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
return 0;
}
void strncpy(char *s,char *t){
while(*t&&n-->0){
*t++=*s++;
}
while(n-->0){
*s++='\0';
}
}
库函数strncpy
最新推荐文章于 2024-03-15 08:32:32 发布