|
static proto void | Sort (void paramArray[]) |
| Sorts static array of integers(ascending) / floats(ascending) / strings(alphabetically) / pointers(by address ascending)
|
|
static proto void | Reverse (void paramArray[]) |
| Revers order of static array elements.
|
|
static proto int | Copy (void destArray[], void srcArray[], int dstOffset=0, int srcOffset=0, int num=-1) |
| Copy elements from one static array into another (of same type)
|
|
static proto int | Length (void paramArray[]) |
| Return length of static array.
|
|
◆ Copy()
static proto int StaticArray.Copy |
( |
void |
destArray[], |
|
|
void |
srcArray[], |
|
|
int |
dstOffset = 0 , |
|
|
int |
srcOffset = 0 , |
|
|
int |
num = -1 |
|
) |
| |
|
static |
Copy elements from one static array into another (of same type)
- Parameters
-
destArray | destination array |
srcArray | source array |
dstOffset | element offset in destination array |
srcOffset | element offset in source array |
num | number of elements to copy (-1 for all of them) |
- Returns
int
number of elements copied int arr1[3] = {1,2,3};
int arr2[3];
int arr3[2];
>> {1,2,3}
>> {1,2,3}
>> {2,3}
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
Definition: StaticArray.c:13
static proto int Copy(void destArray[], void srcArray[], int dstOffset=0, int srcOffset=0, int num=-1)
Copy elements from one static array into another (of same type)
◆ Length()
static proto int StaticArray.Length |
( |
void |
paramArray[] | ) |
|
|
static |
Return length of static array.
◆ Reverse()
static proto void StaticArray.Reverse |
( |
void |
paramArray[] | ) |
|
|
static |
Revers order of static array elements.
int arr1[] = {1,2,3};
>> {1,2,3}
>> {3,2,1}
static proto void Reverse(void paramArray[])
Revers order of static array elements.
◆ Sort()
static proto void StaticArray.Sort |
( |
void |
paramArray[] | ) |
|
|
static |
Sorts static array of integers(ascending) / floats(ascending) / strings(alphabetically) / pointers(by address ascending)
- Parameters
-
paramArray | Array to sort string arrStr[3] = {"Dog", "Car", "Apple"};
>> {'Apple','Car','Dog'}
static proto void Sort(void paramArray[]) Sorts static array of integers(ascending) / floats(ascending) / strings(alphabetically) / pointers(by...
|
The documentation for this interface was generated from the following file:
- Core/generated/Types/StaticArray.c