mirror of
https://github.com/lloeki/cblocks-clobj.git
synced 2025-12-06 10:44: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 <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <Block.h>
|
#include <Block.h>
|
||||||
|
|
||||||
|
|
@ -46,7 +47,12 @@ Post *Post_alloc() {
|
||||||
int main(void) {
|
int main(void) {
|
||||||
Post *post = Post_alloc();
|
Post *post = Post_alloc();
|
||||||
post->init();
|
post->init();
|
||||||
|
|
||||||
|
strcpy(post->author, "Foo Bar");
|
||||||
|
strcpy(post->body, "Lorem ipsum dolor sit amet");
|
||||||
post->printf();
|
post->printf();
|
||||||
|
|
||||||
post->dealloc();
|
post->dealloc();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue