suppression affichage caracteres exotiques par insertion caractere fin de chaine
Fork of GPS_GSM by
Diff: main.cpp
- Revision:
- 1:96183a37548e
- Parent:
- 0:2b9408ff3a1d
- Child:
- 2:2299fb36bdd0
--- a/main.cpp Mon May 28 16:28:31 2018 +0000 +++ b/main.cpp Mon May 28 17:37:57 2018 +0000 @@ -263,6 +263,7 @@ // pc.printf("%c ",sms[longueur_msg2]); longueur_msg2++; } + sms[longueur_msg2] = '\0'; // le dernier caractere = fin de chaine pc.printf("sms recu : %s, longueur_msg= %d \n", sms, longueur_msg2); // suppression en tete for (int i=0;i<100;i++)