int main() { static char message[20] = "Salut"; static char ch2[] = "hello"; static char ch1[] = "hi"; printf("\nEntrez un message\n"); getS(message,25); printf("\nAffichage message : "); putS(message); strCpy(ch2,ch1); printf("\nAffichage message apres copy de hi dans hello: "); putS(ch2); printf("%d",strLen("Plop8")); printf("\nstrCmp1 : %d",strCmp("plop","plop")); printf("\nstrCmp2 : %d",strCmp("ABCD","ABEFG")); printf("\nstrCmp3 : %d",strCmp("plop","plo")); printf("\nstrCat : "); strCat(message," Denis"); putS(message); }
void main(){ int a,s,b,n; a = getInt(); s = getS(a); b = getB(a); a = getN(a); n = getN(a); putB(b); putS(s); putN(n); }
int main(void){ configureUART1(19200,'N',1); // 19200 baud, 8 Bits, No Parity, 1 Stop Bit TRISEbits.TRISE0 = 0; // RE0 Configured As Output while(1){ while(U1STAbits.TRMT == 0); // Wait While TRMPT == 0 LATEbits.LATE0 = 1; // Set RE0 putS("123456789A\n"); // Send String LATEbits.LATE0 = 0; // Reset RE0 } return 0; }