Re: Lesson/Example please

2021-03-15 Thread Fred Wright via devel
On Sun, 14 Mar 2021, Hal Murray via devel wrote: [Context is cleaning up ntp_control] This will probably be simple after somebody gives me a good example and/or explains things to me. I want to put a (pointer to a) function in a field of a struct. The type of that function includes a pointer

Re: Lesson/Example please

2021-03-15 Thread Richard Laager via devel
On 3/15/21 2:06 PM, Richard Laager via devel wrote: On 3/14/21 11:25 PM, Hal Murray via devel wrote: Can anybody give me a pointer to code that does this?  Or steer me in the right direction, or ... There is a recursive tangle of struct needs function and function needs struct, but the functio

Re: Lesson/Example please

2021-03-15 Thread Richard Laager via devel
On 3/14/21 11:25 PM, Hal Murray via devel wrote: Can anybody give me a pointer to code that does this? Or steer me in the right direction, or ... There is a recursive tangle of struct needs function and function needs struct, but the function only needs a pointer to the struct so I think that

Lesson/Example please

2021-03-14 Thread Hal Murray via devel
[Context is cleaning up ntp_control] This will probably be simple after somebody gives me a good example and/or explains things to me. I want to put a (pointer to a) function in a field of a struct. The type of that function includes a pointer to the struct. I need to make several functions of t