#include <mem.h> |
#include <alloc.h> |
#include <stdio.h> |
#include <string.h> |
int main( void ) |
{ |
char *source = "Borland International" ; |
char *destination; |
int length; |
length = strlen (source); |
destination = malloc (length + 1); |
movmem(source,destination,length); |
printf ( "%s\n" ,destination); |
return 0; |
} |
by: 发表于:2017-08-24 17:41:56 顶(0) | 踩(0) 回复
??
回复评论