Don't know what was said in the lecture, but I guess
it was an example for something that shouldn't be done.
You can't use free with a pointer to the middle of an
allocated area, it causes segmantation fault (as you noticed).
Ido
> -Original Message-
> From: Haifux - Haifa Linux Club
> [m
Send them to [EMAIL PROTECTED]
We'll need about 15 to start looking for a place or so.
Also, I'll try to talk with Yaniv.
--
Orr Dunkelman,
[EMAIL PROTECTED]
"If it wasn't for C, we'd be writing programs in BASI, PASAL, and OBOL", anon
Spammers: http://vipe.technion.ac.il/~orrd/spam.html
GPG finger
As we talked about in the c with a spoon lecture, I tried the
pointer arithmetic and then free and at least for me it didn't
work.
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[EMAIL PROTECTED]:~]$ gcc nis2.c
[EMAIL PROTECTED]:~]$ ./a.out
char y[0] a
char y[1] b
char y[2] c
char y
Also what I was thinking - but they do seem to be excited about the
concept (a costume party was suggested :)
On Tue, 8 Mar 2005 23:52:11 +0200 (IST), Orna Agmon
<[EMAIL PROTECTED]> wrote:
> On Tue, 8 Mar 2005, Ohad Lutzky wrote:
> > It seems that Yaniv Hamo has been talking about an installation
On Tue, 8 Mar 2005, Ohad Lutzky wrote:
> It seems that Yaniv Hamo has been talking about an installation party
> in his Systems Programming Intro tutorial. This, among other reasons,
> has sent a few people asking me when and where this will occur. I told
> everyone that if there will be enough peo
It seems that Yaniv Hamo has been talking about an installation party
in his Systems Programming Intro tutorial. This, among other reasons,
has sent a few people asking me when and where this will occur. I told
everyone that if there will be enough people interested, one just
might be thrown. Shoul