#include <stdio.h>
#include <stdlib.h>
/*
*
*/
static char *s;
static char *t;
main() {
*s = "ciaos";
*t = "hello";
strCopy(*s,*t);
}
//versione con vettori
void strCopy(char *s,char *t){
int i = 0;
while((s[i] = t[i]) != '\0'){
i++;
}
}
// versione con puntatori
void strCop(char *s,char *t){
while((*s = *t) != '\0'){
*s++;
*t++;
}
}