mirror of
https://github.com/lloeki/cblocks-clobj.git
synced 2025-12-06 02:34:40 +01:00
some content
This commit is contained in:
parent
d0281df615
commit
d13b235f1f
1 changed files with 6 additions and 0 deletions
6
main.c
6
main.c
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <Block.h>
|
||||
|
||||
|
|
@ -46,7 +47,12 @@ Post *Post_alloc() {
|
|||
int main(void) {
|
||||
Post *post = Post_alloc();
|
||||
post->init();
|
||||
|
||||
strcpy(post->author, "Foo Bar");
|
||||
strcpy(post->body, "Lorem ipsum dolor sit amet");
|
||||
post->printf();
|
||||
|
||||
post->dealloc();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue