Re: [c-prog] how to write own header file??

2009-04-13 Thread Tamas Marki
On Mon, Apr 13, 2009 at 12:22 AM, Tyler Littlefield ty...@tysdomain.com wrote: When you joined c-prog, you should have received an e-mail containing the group welcome message. In that message was a list of books that you should read. Just in case you missed the message, here is that list of

[c-prog] system's protection against buffer overflow

2009-04-13 Thread Pedro Izecksohn
Source code in: http://www.izecksohn.com/pedro/c/bo/bo.tar.gz Should static data be executable? I found that static data is executable on some platform.

[c-prog] Re: system's protection against buffer overflow

2009-04-13 Thread John Matthews
--- In c-prog@yahoogroups.com, Pedro Izecksohn izecks...@... wrote: I found that static data is executable on some platform. FYI CentOS 5 (linux): Compiled with gcc version 4.1. Now I'll try to overwrite the beginning of main (int, char **). It caused a SIGSEGV. Continuing. Now I'll try to

[c-prog] Re: system's protection against buffer overflow

2009-04-13 Thread Pedro Izecksohn
I found that static data is executable on some platform. I was wrong. There is no reason for a constant string not be executable. It were not testing a writable static piece of memory.

[c-prog] Re: system's protection against buffer overflow

2009-04-13 Thread John Matthews
--- In c-prog@yahoogroups.com, Pedro Izecksohn izecks...@... wrote: There is no reason for a constant string not be executable. ...unless program memory and data memory are physically separate (Harvard architecture) eg. my company's chips:

Re: [c-prog] how to write own header file??

2009-04-13 Thread Snit Roy
i just wanted ur choice of the book.which book u follow to write header file??i read only jaswant kanitkar book to learn C.but it doesnt say nything about writting header file..so i wanted ur choice..plz dnt misunderstand me...

Re: [c-prog] how to write own header file??

2009-04-13 Thread Snit Roy
sorry.i missed that.sorry groups From: Thomas Hruska thru...@cubiclesoft.com To: c-prog@yahoogroups.com Sent: Monday, April 13, 2009 3:48:42 AM Subject: Re: [c-prog] how to write own header file?? Snit Roy wrote: i know i can get everything on google.but

[c-prog] Re: need help in this code

2009-04-13 Thread sudeshkmr
--- In c-prog@yahoogroups.com, Tyler Littlefield ty...@... wrote: we don't correct your code and mail it off to some other place... Use GNU GCC from http://gcc.gnu.org/ Turbo C++ is quite old and it doesnt work with latest Windows version and processors. I recommend you use something other

Re: [c-prog] clear my doubt

2009-04-13 Thread Brett McCoy
On Mon, Apr 13, 2009 at 6:53 AM, osho ratha rathao...@yahoo.co.in wrote: hello friends, any one of you can explain about what is the main purpose of args.length with sample examples That's Java, not C++. Please re-direct your question to the right mailing list. A quick Google search

Re: [c-prog] clear my doubt

2009-04-13 Thread Thomas Hruska
Brett McCoy wrote: On Mon, Apr 13, 2009 at 6:53 AM, osho ratha rathao...@yahoo.co.in wrote: hello friends, any one of you can explain about what is the main purpose of args.length with sample examples That's Java, not C++. Please re-direct your question to the right mailing list. A

Redundant argc? (was Re: [c-prog] clear my doubt)

2009-04-13 Thread Paul Herring
On Mon, Apr 13, 2009 at 3:17 PM, Thomas Hruska thru...@cubiclesoft.com wrote: I was thinking some weird mangled sentence involving the archaic 'int argc'.  Which would have provided for interesting discussion about why 'argc' exists in the first place since 'argv' is generally sufficient

Re: [c-prog] clear my doubt

2009-04-13 Thread andrew clarke
On Mon 2009-04-13 07:17:13 UTC-0700, Thomas Hruska (thru...@cubiclesoft.com) wrote: Which would have provided for interesting discussion about why 'argc' exists in the first place since 'argv' is generally sufficient (i.e. the array is NULL terminated on every platform I've ever used). My

[c-prog] constructor and initialization

2009-04-13 Thread Jos Timanta Tarigan
hi, i think i already asked this question before but i just cant find it. sorry if double post :) i got problem trying to split constructor and its initial value without making new constructor/method. so im trying to do the initialization inside a loop but construct the object outside the

Re: [c-prog] clear my doubt

2009-04-13 Thread John Gaughan
Thomas Hruska wrote: Wasn't thinking along those lines when I let it through. I was thinking some weird mangled sentence involving the archaic 'int argc'. Which would have provided for interesting discussion about why 'argc' exists in the first place since 'argv' is generally sufficient

Re: [c-prog] clear my doubt

2009-04-13 Thread Tyler Littlefield
Java imitates C++, C++ should imitate Java :-) no thanks, I don't want the brain damage. I also don't want to dig around for an engine that takes me 30 minutes to find on their website so that I can inform the user about who sun is. Hqave you heard of sun? We'll tell you about sun. Are you sure

Re: [c-prog] clear my doubt

2009-04-13 Thread Brett McCoy
On Mon, Apr 13, 2009 at 9:17 PM, Tyler Littlefield ty...@tysdomain.com wrote: Java imitates C++, C++ should imitate Java :-) no thanks, I don't want the brain damage. I also don't want to dig around for an engine that takes me 30 minutes to find on their website so that I can inform the user

Re: [c-prog] clear my doubt

2009-04-13 Thread Tyler Littlefield
yeah. I'm going to learn it because the industry demands it. I was just making a joke at the cost of java. Thanks, Tyler Littlefield Web: tysdomain.com email: ty...@tysdomain.com My programs don't have bugs, they're called randomly added features. - Original Message - From: Brett