feat: Demo-Examples (Python/Rust/Go/C) mit Protokoll-Templates und Restore-Skript
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fb4e96919a
commit
64c2b7f0fd
21 changed files with 614 additions and 0 deletions
16
examples/c-linkedlist/main.c
Normal file
16
examples/c-linkedlist/main.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
#include "linked_list.h"
|
||||
|
||||
int main(void) {
|
||||
Node *list = NULL;
|
||||
|
||||
for (int i = 1; i <= 5; i++)
|
||||
list = list_append(list, i);
|
||||
|
||||
printf("Liste: ");
|
||||
list_print(list);
|
||||
printf("Länge: %d\n", list_length(list));
|
||||
|
||||
list_free(list); /* leckt wegen unvollständigem TODO */
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue