chore: restore original directory structure (project under code-review-graph-main/)

This commit is contained in:
AuraK Developer
2026-08-31 13:08:20 +08:00
parent ecc55158c1
commit ecfd03a21c
404 changed files with 0 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int id;
char name[50];
} User;
User* create_user(int id, const char* name) {
User* user = malloc(sizeof(User));
user->id = id;
snprintf(user->name, 50, "%s", name);
return user;
}
void print_user(User* user) {
printf("User %d: %s\n", user->id, user->name);
}
int main() {
User* u = create_user(1, "Alice");
print_user(u);
free(u);
return 0;
}