objects

objects in c
git clone https://noulin.net/git/objects.git
Log | Files | Refs | README | LICENSE

commit 7c08857e530d2db7b43aa7c0eba5c336cd34dc91
parent 074b8f7887361e447930a256bc2455944bea79b9
Author: Remy Noulin (Spartatek) <remy.noulin@spartatek.se>
Date:   Tue, 21 Feb 2017 14:41:46 +0100

add alternative initiate

main.c | 10 ++++++++++
1 file changed, 10 insertions(+)

Diffstat:
Mmain.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -48,4 +48,14 @@ void main() { createAllocateclasst(obj2); obj2->print("\nObject in heap\n"); obj2->terminate(&obj2); + + // initiate alternative + classt obj3; + initiateclasst(&obj3); + obj3.print("\n\nobj 3\n"); + + classt *obj4; + initiateAllocateclasst(&obj4); + obj4->print("\nOBJ 4\n"); + obj4->terminate(&obj4); }