diff options
author | 2024-06-05 17:23:45 +0600 | |
---|---|---|
committer | 2024-06-05 17:23:45 +0600 | |
commit | 815eca3e8f367a6fed50be59b10316b5028773aa (patch) | |
tree | da6db4241b77bb54f51a4dfdecb7ab6cece20914 /src/teams.c | |
parent | 83cf6de508664535c77e4d6aa8f0695a3fa7cdf2 (diff) | |
download | c-obp-example-815eca3e8f367a6fed50be59b10316b5028773aa.tar.gz c-obp-example-815eca3e8f367a6fed50be59b10316b5028773aa.zip |
Add class declaration helper
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/teams.c')
-rw-r--r-- | src/teams.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/teams.c b/src/teams.c index 33efae3..00c12cd 100644 --- a/src/teams.c +++ b/src/teams.c @@ -13,6 +13,15 @@ CLASS(team, { uint8_t solved; }); +NCLASS( team_t, { + LIST(team_t, name, char, [255]); + LIST(team_t, members, char, [3][255], int); + LIST(team_t, institution, char, [255]); + ATOM(team_t, solved, uint8_t); + DEFN(team_t, printf, int); + DEFN(team_t, fprintf, int, FILE *); +}); + // base functions NEW(team, { return (team)malloc(sizeof(TYPE(team))); |