From 134f855b537b714eb98bc1e6e1e4790b4d6491a3 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 22 Jun 2024 20:01:14 +0200 Subject: Added writing and reading structs from files --- c-structs/struct.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 c-structs/struct.h (limited to 'c-structs/struct.h') diff --git a/c-structs/struct.h b/c-structs/struct.h new file mode 100644 index 0000000..38a0cc7 --- /dev/null +++ b/c-structs/struct.h @@ -0,0 +1,6 @@ +typedef struct { + char name[50]; + int health; + float damage; +} Character; + -- cgit v1.2.3