Newsgroups: comp.lang.c, comp.lang.c++, comp.unix.programmer, comp.lang.javascript, comp.lang.lisp
From: gnuist...@hotmail.com
Date: Fri, 26 Oct 2012 10:16:30 -0700 (PDT)
Local: Fri, Oct 26 2012 1:16 pm
Subject: Re: avcall, callback, trampoline, vacall, etc
On Oct 26, 5:27 am, Les Cargill <lcargil...@comcast.com> wrote:
> gnuist...@hotmail.com wrote:
For starters, I always start with google and wikipedia. I could not
> > Dear Programming Gurus, > > These concepts are rather well talked about .. over the internet and
> > avcall, callback, trampoline, vacall, etc
> > I looked in a book of C programming, ie k&r and also the rationale for
> > I know that javascript books talk a lot about callbacks and there is
> > Can anyone give clear definition, example, benefits, variations,
> "Callbacks" are a method of storing pointers to functions
> I'm answering from comp.lang.c so one thing I would start with is to
find any examples. I am asking here so that you guys can give me whetted and good
there are books on defice driver programming. I need the part that you
> After that, just do plain old callbacks in 'C' - declare...
> //a typedef
> typedef void (*cbtype)(char *);
> // an array of them
> cbtype cbtab[3];
> // an initializer
> void set_cb(cbtype a,int idx)
> }
> // and reference the callbacks
> void thing(char *s)
> }
> ...
> set_cb(thing,2);
> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||