[c-prog] Compilation error

2006-12-07 Thread saurabh jain
Hi, I was trying to compile a simple prog /* snippet */ #define MODULE #include signal.h #include linux/module.h int init_module (void) /* Loads a module in the kernel */ { printk(Loading module \n); return 0; } void cleanup_module(void) /* Removes module from kernel */ {

[c-prog] C or C++ Project Text Editor

2006-12-07 Thread Ajay
Hi I need Project Text Editor in C OR C++. Please send me the code. Regards ajay Gurgaon [EMAIL PROTECTED]

[c-prog] Few questions to C ponders

2006-12-07 Thread mano M
mano M [EMAIL PROTECTED] wrote: Hi, Why C++ doesn't allow few of the operator overloading?(like ::,?:,sizeof,.) Any Reason behind that? When new operator is required to be overload? Any concrete example. Thanks for the answer for the previous question.

Re: [c-prog] difer btwn *ptr++ (*ptr)++

2006-12-07 Thread Sunil Nair
--- Uma Maheswara Rao Lankoti [EMAIL PROTECTED] wrote: unary ++ operator is having higher priority than unary * operator. s...provided might be compiler dependent.. Unary operators appear before their operand and associate from right to left. so *b++ is token(ed) as *(b++)

Re: [c-prog] Compilation error

2006-12-07 Thread Brett W. McCoy
On 12/6/06, saurabh jain [EMAIL PROTECTED] wrote: Hi, I was trying to compile a simple prog /* snippet */ #define MODULE #include signal.h #include linux/module.h int init_module (void) /* Loads a module in the kernel */ { printk(Loading module \n); return 0; } void

Re: [c-prog] difer btwn *ptr++ (*ptr)++

2006-12-07 Thread vijayakumar
*ptr pointer to the address. when the pointer is increased the next address will be accessed. suppose a[10] is an array having values {10,20,30,40}.if *ptr is assign to a ( *ptr=a), then *ptr will point to 10, *ptr++ will point to next integer address ie *ptr++ value is 20. But when come to

[c-prog] Re: Compilation error

2006-12-07 Thread Saurabh Jain
--- In c-prog@yahoogroups.com, saurabh jain [EMAIL PROTECTED] wrote: Hi, I was trying to compile a simple prog /* snippet */ #define MODULE #include signal.h #include linux/module.h int init_module (void) /* Loads a module in the kernel */ { printk(Loading module \n);

[c-prog] Re: Compilation error

2006-12-07 Thread Saurabh Jain
--- In c-prog@yahoogroups.com, Brett W. McCoy [EMAIL PROTECTED] wrote: snip I think there are some additional defines missing, and your compile command may not be correct... I'm no expert in this, though. Have you looked at this: http://tldp.org/LDP/lkmpg/index.html Thanks for the

[c-prog] Re: difer btwn *ptr++ (*ptr)++

2006-12-07 Thread Saurabh Jain
--- In c-prog@yahoogroups.com, Saurabh Jain [EMAIL PROTECTED] wrote: snip *ptr++ is equivalent to *ptr; ptr++; Left to right binding...possibally compiler dependent, but as per my understand ANSCI has defined it well enuf. You can refer to KR for more details, they have explained it

[c-prog] Re: Compilation error

2006-12-07 Thread Saurabh Jain
--- In c-prog@yahoogroups.com, Brett W. McCoy [EMAIL PROTECTED] wrote: On 12/7/06, Saurabh Jain [EMAIL PROTECTED] wrote: --- In c-prog@yahoogroups.com, Brett W. McCoy idragosani@ wrote: snip I think there are some additional defines missing, and your compile command may

Re: [c-prog] Few questions to C ponders

2006-12-07 Thread Uma Maheswara Rao Lankoti
@Mano: First, operators will be overloaded to do the same kind of operation on those objects where we cant perform as we did on basic data types. I can give u reasons why these operators cant be overloaded except (.) operator. ?: is conditional operator, simply its equal to if-else condition.

Re: [c-prog] Re: Compilation error

2006-12-07 Thread Brett W. McCoy
On 12/7/06, Saurabh Jain [EMAIL PROTECTED] wrote: Why do you think that's the correct solution? Did you read the tutorial on what is needed to build a basic kernel module? removing the headers didn't seem to be a part of that tutorial. HmNice point... My kernel did not have the

Re: [c-prog] difer btwn *ptr++ (*ptr)++

2006-12-07 Thread Pedro Izecksohn
--- Sunil Nair [EMAIL PROTECTED] wrote: s...provided might be compiler dependent.. #include stdio.h int main (int argc, char ** argv) { int i=12345, *ip=i; printf (%d\n,*ip++); printf (%d\n,*ip); return 0; } Which compiler are you using? Unary operators ... associate from

Re: [c-prog] C or C++ Project Text Editor

2006-12-07 Thread ed
On Thu, 07 Dec 2006 08:00:02 - Ajay [EMAIL PROTECTED] wrote: Hi I need Project Text Editor in C OR C++. Please send me the code. Regards ajay Gurgaon [EMAIL PROTECTED] gvim -- Regards, Ed :: http://s5h.net/qf just another python hacker Mr. T does

Re: [c-prog] You Must View This Videoclip!

2006-12-07 Thread Pedro Izecksohn
Is praveen_asl part of this group? Is he innocent? Else he should be banned. When you want to send a virus to this list, send it as source code, for us to joy reviewing it. I could not yet download it, blocked by Yahoo Mail.

Re: [c-prog] You Must View This Videoclip!

2006-12-07 Thread Paul Herring
On 12/7/06, Pedro Izecksohn [EMAIL PROTECTED] wrote: Is praveen_asl part of this group? Yes. Is he innocent? Probably yes. Else he should be banned. When you want to send a virus to this list, send it as source code, for us to joy reviewing it. It's more likely that Yahoo has been