obj function hello()
- From: "gert" <gert.cuykens@xxxxxxxxx>
- Date: 8 Feb 2007 16:02:31 -0800
#include <stdio.h>
obj function hello(){
struct obj = { char *data = 'hello'}
obj.add = obj_add(obj);
return obj;
}
void function obj_add(obj){
obj function add(value){
obj.data += value;
return obj;
}
}
void main(){
test = hello();
test.add('world');
printf(test.data);
}
I don't know much c and i was hoping the code above was pointing out
what i am trying to do ?
.
- Follow-Ups:
- Re: obj function hello()
- From: fdmfdmfdm@xxxxxxxxx
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- Prev by Date: Re: setjmp longjpm question
- Next by Date: obj function hello()
- Previous by thread: history+readline+ncurses
- Next by thread: Re: obj function hello()
- Index(es):