Hi, I would like to pass an array of char to a function and, in the function, insert some data into the array, so that it can read the data in the calling function. Something like:
char arr[20]; compute(arr); .... char c; c = arr[0]; // Must return 'A'!!!!! void compute (char a[]) { a[0] = 'A'; ... ... } What should I modify it to work as I want? thank you very much. Domenico --- Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus. http://www.avast.com
<<attachment: dformenton.vcf>>
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list