10 Commits
Author SHA1 Message Date
phoenix b1fd410eb9 Cleanup conanfile
klist / build (pull_request) Successful in 34s
2026-09-19 16:32:51 -04:00
phoenix 3438a6981f Oops
klist / build (pull_request) Successful in 28s
2026-09-19 16:29:27 -04:00
phoenix 99118dffc6 Test update
klist / build (pull_request) Failing after 28s
2026-09-19 16:26:11 -04:00
phoenix 86c68c4660 Updating test
klist / build (pull_request) Failing after 30s
2026-09-19 16:20:59 -04:00
phoenix 5c07ed46ee Rename file
klist / build (pull_request) Failing after 33s
2026-09-19 16:14:31 -04:00
phoenix d84dcd9f3b Adding test
klist / build (pull_request) Failing after 38s
2026-09-19 16:02:08 -04:00
phoenix df05dc7f62 Adding cmake
klist / build (pull_request) Failing after 33s
2026-09-19 16:01:45 -04:00
phoenix 0e1b32a1d5 Adding conanfile
klist / build (pull_request) Successful in 29s
2026-09-19 15:52:59 -04:00
phoenix 436592e5f1 Update
klist / build (pull_request) Failing after 17s
2026-09-19 15:49:49 -04:00
phoenix 994daf8bfd Adding workflow
klist / build (pull_request) Failing after 1s
2026-09-19 15:48:52 -04:00
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -40,7 +40,7 @@ jobs:
- name: Configure Conan
run: |
conan profile detect --force
conan profile detect --force # Create a default profile
- name: Create build directory
run: mkdir build
@@ -59,3 +59,5 @@ jobs:
- name: Test with CTest (optional)
working-directory: build/Release
run: ctest -C Release
+4 -4
View File
@@ -44,13 +44,15 @@ int is_list_init(struct node **list)
else
return 0;
}
int list_size(struct node **list)
{
int count = 0;
struct node *tmp = *list;
struct node *in_tmp = NULL;
while (tmp != NULL || tmp->next != NULL) {
in_tmp = tmp;
tmp = tmp->next;
++count;
@@ -79,7 +81,6 @@ void insert_at_begin(struct node **list, void *val, size_t val_size)
tmp->next = *list;
*list = tmp;
}
void insert_at_end(struct node **list, void *val, size_t val_size)
{
struct node *tmp = (struct node*)malloc(sizeof(struct node));
@@ -101,7 +102,6 @@ void insert_at_end(struct node **list, void *val, size_t val_size)
tmp->next->data = tmp_val;
tmp->next->next = NULL;
}
void free_list(struct node **list)
{
struct node *t = NULL;
@@ -120,8 +120,8 @@ void free_list(struct node **list)
return;
}
while (l->next != NULL);
}
void traverse(struct node *list, void (*print_val)(struct node*))
{
if (list == NULL)