Go Down

Topic: Empty array, assigning, transferring it to a function. (Read 545 times) previous topic - next topic

hruendel

How do I customize the code if the content would pass from one array to another array 1 to 1?

Code: [Select]
char* myArray1 [] = {"Big", "Long", "High"};
myArray2 char [];
myArray2 = myArray1;

Something like this?

How do I transfer the array to another function?

Code: [Select]

viod loop () {
myArryInLoop char* [];
...
myArryInLoop = myFunction ();
}

char myFunction () {
char* myArray[] = {"Large", "Small"};
return myArray;
}


How do I clear the array?
Code: [Select]
char* myArray[] = {"Large", "small"};  // I'm full.
... myArray // I'm empty
.

Arduino IDE is still very poorly documented, there are these functions at all?


AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


PaulS

Quote
I thought, Arduino is specific. It struggles a bit.

The Arduino and IDE are doing fine. It is you that is struggling.

Go Up