Bonsoir,
je voulais savoir si la fonction colle à la fin de la chaine ou bien change la chaine qui existait avant
Merci
Bonsoir,
je voulais savoir si la fonction colle à la fin de la chaine ou bien change la chaine qui existait avant
Merci
slt,
elle change la chaine. Pour ajouter en fin de chaine, c'est assez simple :
et bien sur, il faut s'assurer de disposer de l'espace nécessaire.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 sprintf(buffer + strlen(buffer), format, ...);
http://man.developpez.comEnvoyé par chmaichel
Thierry
"The most important thing in the kitchen is the waste paper basket and it needs to be centrally located.", Donald Knuth
"If the only tool you have is a hammer, every problem looks like a nail.", probably Abraham Maslow
FAQ-Python FAQ-C FAQ-C++
+
Partager