Source Code for C Unleashed

P

pocmatos

[Sorry for the offtopic post but I'm sure people here can help me out]

Hi all,

I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD. Now,
while skimming through it I could use the source code but I don't have
the CD (left it at my home in Portugal). It says in the book the code
is released under GPL, so I thought I would find it online but this
doesn't seem to be the case. Can anyone tell me where to find it
online, or maybe tar it and upload it somewhere I can get it?

Such a favor would be great.

Thank you very much,

Paulo Matos
 
C

Clever Monkey

[Sorry for the offtopic post but I'm sure people here can help me out]

I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD. Now,
while skimming through it I could use the source code but I don't have
the CD (left it at my home in Portugal). It says in the book the code
is released under GPL, so I thought I would find it online but this
doesn't seem to be the case. Can anyone tell me where to find it
online, or maybe tar it and upload it somewhere I can get it?

Such a favor would be great.
Google '"C unleashed" CD' and you will find some breadcrumbs, some of
which lead back to here.

Some of these links ended up here:
<http://home.att.net/~jackklein/C_Unleashed/code_list.html>

Good luck.
 
P

pocmatos

[Sorry for the offtopic post but I'm sure people here can help me out]
I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD. Now,
while skimming through it I could use the source code but I don't have
the CD (left it at my home in Portugal). It says in the book the code
is released under GPL, so I thought I would find it online but this
doesn't seem to be the case. Can anyone tell me where to find it
online, or maybe tar it and upload it somewhere I can get it?
Such a favor would be great.

Google '"C unleashed" CD' and you will find some breadcrumbs, some of
which lead back to here.

Some of these links ended up here:
<http://home.att.net/~jackklein/C_Unleashed/code_list.html>

Good luck.

As you might have guessed, I did that. But that page contains the code
for Chapter 18 only. :) I was searching the code for the whole book.
In particular the tries and graph chapter.
 
U

user923005

[Sorry for the offtopic post but I'm sure people here can help me out]
I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD. Now,
while skimming through it I could use the source code but I don't have
the CD (left it at my home in Portugal). It says in the book the code
is released under GPL, so I thought I would find it online but this
doesn't seem to be the case. Can anyone tell me where to find it
online, or maybe tar it and upload it somewhere I can get it?
Such a favor would be great.
Google '"C unleashed" CD' and you will find some breadcrumbs, some of
which lead back to here.
Good luck.

As you might have guessed, I did that. But that page contains the code
for Chapter 18 only. :) I was searching the code for the whole book.
In particular the tries and graph chapter.- Hide quoted text -

- Show quoted text -

Can't help you with tries and graph code, but chapter 13 code can be
found here:
http://users.powernet.co.uk/eton/unleashed/errata/896213nw.zip
 
R

Richard Heathfield

(e-mail address removed) said:
[Sorry for the offtopic post but I'm sure people here can help me out]

Hi all,

I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD.

Ouch.

If zip has behaved itself, you can get a CRLF version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.zip

or, if you run a sensible OS, you can get a CRless version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.tar.gz

At this point, I should probably mention that IIRC sparse.h never made
it to the CD - it was all a bit rushed, as is too often the case with
these things, and the header simply got missed off. If you need a copy
of that header, I'm afraid you'll have to track down the program's
author. (He did once send me a copy, but that would have been in about
2003 or so, and I've long since lost track of it.) Tacky or what? But
c'est la vie.
 
P

Paulo Matos

(e-mail address removed) said:
[Sorry for the offtopic post but I'm sure people here can help me out]
I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD.

Ouch.

If zip has behaved itself, you can get a CRLF version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.zip

or, if you run a sensible OS, you can get a CRless version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.tar.gz

Hi Richard,

Ah, this is just what I wanted! :)

Great!
At this point, I should probably mention that IIRC sparse.h never made
it to the CD - it was all a bit rushed, as is too often the case with
these things, and the header simply got missed off. If you need a copy
of that header, I'm afraid you'll have to track down the program's
author. (He did once send me a copy, but that would have been in about
2003 or so, and I've long since lost track of it.) Tacky or what? But
c'est la vie.

Thank you so much... the book is great enough for me to forget those
minor issues regarding missing headers! ;)

By the way, a nice advanced C book regarding efficiency techniques and
design patterns in C would be appreciated! heh
(when you find the time for another book, of course)
 
J

jaysome

(e-mail address removed) said:
[Sorry for the offtopic post but I'm sure people here can help me out]

Hi all,

I have C Unleashed since it was first published and then I moved to
the UK and brought the book with me but not the source code CD.

Ouch.

If zip has behaved itself, you can get a CRLF version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.zip

or, if you run a sensible OS, you can get a CRless version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.tar.gz

I'm suspect of this archive. Consider this snippet from
ch18/TEXT2BIN.C:

/* display successful file open */
fprintf(stderr, "t2b processing\n",
"reading text input %s\n",
"making binary output %s\n",
argv[1], argv[2]);

There appears to be some spurious commas in there. The program created
with my compiler just prints out:

t2b processing

Maybe the author did not run PC-lint or have a peer review on this
code. Or maybe the spurious commas are the result of a problem with
gzip. Or perhaps neither, as everyone's human.

Best regards
 
R

Richard Heathfield

jaysome said:
On Tue, 27 Feb 2007 17:47:22 +0000, Richard Heathfield
If zip has behaved itself, you can get a CRLF version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.zip

or, if you run a sensible OS, you can get a CRless version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.tar.gz

I'm suspect of this archive. Consider this snippet from
ch18/TEXT2BIN.C:

/* display successful file open */
fprintf(stderr, "t2b processing\n",
"reading text input %s\n",
"making binary output %s\n",
argv[1], argv[2]);

There appears to be some spurious commas in there.

Aye. Well, it was kind of you to try to blame gzip, but the source
quoted above does actually appear on the CD-ROM that accompanied the
book. I think we'll have to take this one on the chin.
[...] everyone's human.

That's the best excuse I can think of, too. The second edition (which is
scheduled to be published on the centennial anniversary of the first)
will be written entirely by automatically generated computer software,
so next time around we (or rather, our descendants) will be able to put
the blame squarely on the computer.
 
D

Default User

Richard Heathfield wrote:

That's the best excuse I can think of, too. The second edition (which
is scheduled to be published on the centennial anniversary of the
first) will be written entirely by automatically generated computer
software, so next time around we (or rather, our descendants) will be
able to put the blame squarely on the computer.

You just think it will. In fact, AI won't have progressed that far (it
will 20 years away). Instead, the book will be written by the uploaded
personalities of Heathfield et al.




Brian
 
K

Keith Thompson

Default User said:
You just think it will. In fact, AI won't have progressed that far (it
will 20 years away). Instead, the book will be written by the uploaded
personalities of Heathfield et al.

Nah, that's how the first edition was written.
 
J

jaysome

jaysome said:
On Tue, 27 Feb 2007 17:47:22 +0000, Richard Heathfield
If zip has behaved itself, you can get a CRLF version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.zip

or, if you run a sensible OS, you can get a CRless version here:

http://www.cpax.org.uk/prg/portable/c/unleashed/code/bookcode.tar.gz

I'm suspect of this archive. Consider this snippet from
ch18/TEXT2BIN.C:

/* display successful file open */
fprintf(stderr, "t2b processing\n",
"reading text input %s\n",
"making binary output %s\n",
argv[1], argv[2]);

There appears to be some spurious commas in there.

Aye. Well, it was kind of you to try to blame gzip, but the source
quoted above does actually appear on the CD-ROM that accompanied the
book. I think we'll have to take this one on the chin.
[...] everyone's human.

That's the best excuse I can think of, too. The second edition (which is
scheduled to be published on the centennial anniversary of the first)
will be written entirely by automatically generated computer software,
so next time around we (or rather, our descendants) will be able to put
the blame squarely on the computer.

Yes.

Hopefully:

gcc -Wall-and-I-do-mean-all

should be implemented by the said centennial anniversary.

Best regards
 
C

Charlton Wilbur

mb> Genuine AI will always be 20 years away...

Only slightly more elusive than genuine non-artificial intelligence.

Charlton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top