-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can now back out of entering network details and cancel joining a…
… network
- Loading branch information
Root User
committed
Apr 28, 2020
1 parent
9907a41
commit d5f11b6
Showing
51 changed files
with
1,570 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: c | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
compiler: | ||
- clang | ||
- gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "includes.h" | ||
#include "Array.h" | ||
|
||
void **ArrayAdd(void **Array, void *Item) | ||
{ | ||
void *ptr; | ||
int count=0; | ||
|
||
if (! Array) Array=calloc(10, sizeof(void *)); | ||
else | ||
{ | ||
for (ptr=*Array; ptr !=NULL; ptr++) | ||
{ | ||
count++; | ||
} | ||
} | ||
|
||
Array=realloc(Array, (count+10) * sizeof(void *)); | ||
Array[count]=Item; | ||
Array[count+1]=NULL; | ||
return(Array); | ||
} | ||
|
||
|
||
void ArrayDestroy(void **Array, ARRAY_ITEM_DESTROY_FUNC DestroyFunc) | ||
{ | ||
void **ptr; | ||
|
||
for (ptr=Array; *ptr != NULL; ptr++) DestroyFunc(*ptr); | ||
if (Array != NULL) free(Array); | ||
} | ||
|
Oops, something went wrong.