[c-prog] aanther book recomendation, please?

2008-07-08 Thread Tyler Littlefield
Hello, I was wondering if someone could recommend a book on some of the following: kernel programming (either for linux or windows, or both), windows driver development windows api pthreads (posix threads), or something similar data structures. I've got some time off and would like to learn more

[c-prog] Re: aanther book recomendation, please?

2008-07-08 Thread John Matthews
--- In c-prog@yahoogroups.com, Tyler Littlefield [EMAIL PROTECTED] wrote: Hello, I was wondering if someone could recommend a book on some of the following: kernel programming (either for linux or windows, or both), Linux: http://lwn.net/Kernel/LDD3/

[c-prog] Re: memory access questions

2008-07-08 Thread teletep
Thank you Jhon, I found a very good description about the inline assembly for PPC from Metrowerk's CodeWarrior. Apple's xcode accepts the syntax. It's a real break-out of the restrictions of c. It allows me to access all memory without alignment problems. I even can access the code, implement

[c-prog] lists

2008-07-08 Thread Bill Cunningham
I want to write a program in C that reads and writes data for securities analysis. I want the program to calculate means as such: 5.00 5.00 5.00 5.00 10.00 5.00 There is going to have to be some kind of loop here and I'm not quite sure how to do it. Bill

Re: [c-prog] Re: aanther book recomendation, please?

2008-07-08 Thread Tyler Littlefield
was wondering if someone could recommend a book on some of the following: kernel programming (either for linux or windows, or both), Linux: http://lwn.net/Kernel/LDD3/ __ NOD32 3251 (20080708) Information __ This message was checked by NOD32 antivirus system. http

[c-prog] Re: Why to use function pointer

2008-07-08 Thread peternilsson42
Arindam Biswas [EMAIL PROTECTED] wrote: Hi Friends, I need to understand a very simple doubt: Function pointer has some overhead associated with it. So does addition, subtraction, etc... Still WHY SHOULD we use function pointer instead of calling directly that function. Because

[c-prog] Memory allocation in DLL

2008-07-08 Thread amr elalamy
Hi all, I want to allocate memory in DLL and free this allocation in another application. Is it valid or not i.e. DLL: void GetText (char * text) {    text = new char[1000];   ... } EXE: void main() {   char * txt = NULL;   pGetText(txt);   if(txt) delete [] txt;    

Re: [c-prog] Memory allocation in DLL

2008-07-08 Thread John Gaughan
amr elalamy wrote: I want to allocate memory in DLL and free this allocation in another application. Is it valid or not i.e. Given you are talking about DLLs, I assume you mean Windows. In this case, memory is owned by whatever library created it. Even though an EXE may load a DLL

Re: [c-prog] Re: memory access questions

2008-07-08 Thread John Gaughan
teletep wrote: I found a very good description about the inline assembly for PPC from Metrowerk's CodeWarrior. Apple's xcode accepts the syntax. It's a real break-out of the restrictions of c. It allows me to access all memory without alignment problems. I even can access the code,

Re: [c-prog] lists

2008-07-08 Thread andrew clarke
On Tue 2008-07-08 17:19:17 UTC-0400, Bill Cunningham ([EMAIL PROTECTED]) wrote: I want to write a program in C that reads and writes data for securities analysis. I want the program to calculate means as such: It's not clear what you want. By calculate means, do you want to find the