#include <stdio.h> #include <string.h> void copy_string_( char *str_src, int *len_str_src, char *str_dst, int *len_str_dst ){ int i; for( i = 0; i < *len_str_src; i++ ){ str_dst[i] = str_src[i]; } for( i = *len_str_src; i < *len_str_dst; i++ ){ str_dst[i] = ' '; } printf("C function\n"); printf("str_src: %s, strlen(str_src): %ld, len_str_src: %d\n", str_src, strlen(str_src), *len_str_src); printf("str_dst: %s, strlen(str_dst): %ld, len_str_dst: %d\n", str_dst, strlen(str_dst), *len_str_dst); }