| |||||
| Dernière réponse | |
|---|---|
| Sujet : Un bon programmeur de C SVP... strcat et char... | |
| LetoII | char *deb;
char chaine[]= "C:\\Windows\\*.*"; char nomFic[]="System"; deb=strchr(chaine,'*'); path_2=(char *)malloc(deb-chaine+1+strlen(nomFic)); strncpy(path_2,chaine,deb-chaine); strcat(path_2,nomFic); |
| Vue Rapide de la discussion |
|---|