|  | qsort |  | |
| | | Ron Ford |  |
| Posted: Tue Aug 26, 2008 11:59 pm Post subject: qsort |  |
Is qsort an intrinsic for C? -- We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children smart. 5 H. L. Mencken |
| |
| | | pete |  |
| Posted: Wed Aug 27, 2008 12:03 am Post subject: Re: qsort |  |
Ron Ford wrote:
| Quote: | Is qsort an intrinsic for C?
|
In hosted implementations, yes. In freestanding implementations, no.
-- pete |
| |
| | | Eric Sosman |  |
| Posted: Wed Aug 27, 2008 12:05 am Post subject: Re: qsort |  |
Ron Ford wrote:
| Quote: | Is qsort an intrinsic for C?
|
qsort() is a function in C's Standard library, available for use in all hosted implementations.
What's an "intrinsic?"
-- Eric Sosman esosman@ieee-dot-org.invalid |
| |
| | | Ron Ford |  |
| Posted: Wed Aug 27, 2008 12:47 am Post subject: Re: qsort |  |
On Tue, 26 Aug 2008 22:05:01 -0400, Eric Sosman posted:
| Quote: | Ron Ford wrote:
Is qsort an intrinsic for C?
qsort() is a function in C's Standard library, available for use in all hosted implementations.
What's an "intrinsic?"
|
An intrinsic is something that comes with the food in a given syntax.
One of my intrinsics is that I like Hillary. Your mileage may vary.
I don't see qsort in K&R as I leaf through or in the index. Did I photograph the wrong target when I thought to have read of qsort in K&R? -- We are here and it is now. Further than that, all human knowledge is moonshine. 3 H. L. Mencken |
| |
| | | Richard Harter |  |
| Posted: Wed Aug 27, 2008 1:41 am Post subject: Re: qsort |  |
On Tue, 26 Aug 2008 22:05:01 -0400, Eric Sosman <esosman@ieee-dot-org.invalid> wrote:
| Quote: | Ron Ford wrote:
Is qsort an intrinsic for C?
qsort() is a function in C's Standard library, available for use in all hosted implementations.
What's an "intrinsic?"
|
The term is used in Fortran and elsewhere; it means that the function in question is an intrinsic part of the language in contrast to being part of a library. I expect that you already know this and that your question is rhetorical, but I thought it worthy of answer anyway.
So, no, qsort is not an intrinsic; if it were you wouldn't need to include stdlib.h nor would you need to link in the standard library. Nor could you write your own qsort and use it, either by omitting to include stdlib.h, or by simply replacing qsort in the standard library.
Richard Harter, cri@tiac.net LINK LINK Save the Earth now!! It's the only planet with chocolate. |
| |
| | | Ron Ford |  |
| Posted: Wed Aug 27, 2008 2:10 am Post subject: Re: qsort |  |
On Tue, 26 Aug 2008 19:55:00 -0700 (PDT), vippstar@gmail.com posted:
| Quote: | On Aug 27, 5:47 am, Ron Ford <r...@example.invalid> wrote: On Tue, 26 Aug 2008 22:05:01 -0400, Eric Sosman posted:
Ron Ford wrote:
Is qsort an intrinsic for C?
qsort() is a function in C's Standard library, available for use in all hosted implementations.
What's an "intrinsic?"
An intrinsic is something that comes with the food in a given syntax.
No it's not.
One of my intrinsics is that I like Hillary. Your mileage may vary.
Nonsense.
I don't see qsort in K&R as I leaf through or in the index. Did I photograph the wrong target when I thought to have read of qsort in K&R?
Photograph the wrong target? nonsense. Which K&R? See Appendix B in K&R2.
|
So we have vippstar, who broke his clc cherry to respond to me.
The appendices in K&R are numbered.
Your tjas are too. -- We must be willing to pay a price for freedom. 4 H. L. Mencken |
| |
| | | Ian Collins |  |
| Posted: Wed Aug 27, 2008 2:15 am Post subject: Re: qsort |  |
Ron Ford wrote:
| Quote: | The appendices in K&R are numbered.
In hex maybe, but certainly not in decimal. |
-- Ian Collins. |
| |
| | | Guest |  |
| Posted: Wed Aug 27, 2008 2:55 am Post subject: Re: qsort |  |
On Aug 27, 5:47 am, Ron Ford <r...@example.invalid> wrote:
| Quote: | On Tue, 26 Aug 2008 22:05:01 -0400, Eric Sosman posted:
Ron Ford wrote:
Is qsort an intrinsic for C?
qsort() is a function in C's Standard library, available for use in all hosted implementations.
What's an "intrinsic?"
An intrinsic is something that comes with the food in a given syntax.
|
No it's not.
| Quote: | One of my intrinsics is that I like Hillary. Your mileage may vary.
|
Nonsense.
| Quote: | I don't see qsort in K&R as I leaf through or in the index. Did I photograph the wrong target when I thought to have read of qsort in K&R?
|
Photograph the wrong target? nonsense. Which K&R? See Appendix B in K&R2. |
| |
| | | Sensei |  |
| Posted: Wed Aug 27, 2008 4:56 am Post subject: Re: qsort |  |
On 2008-08-27 06:10:21 +0200, Ron Ford <ron@example.invalid> said:
| Quote: | I don't see qsort in K&R as I leaf through or in the index. Did I photograph the wrong target when I thought to have read of qsort in K&R?
Photograph the wrong target? nonsense. Which K&R? See Appendix B in K&R2.
So we have vippstar, who broke his clc cherry to respond to me.
The appendices in K&R are numbered.
Your tjas are too.
|
If by "number" you mean A, B, and C then yes. My own K&R second edition shows nice "qsort function" and "qsort library function" lines in the index at the end of the book.
--
Sensei <Sensei's e-mail is at Mac-dot-com>
Java is the most distressing thing to happen to computing since MS-DOS. (Alan Kay) |
| |
| | | Ron Ford |  |
| Posted: Wed Aug 27, 2008 5:39 am Post subject: Re: qsort |  |
On Wed, 27 Aug 2008 08:56:11 +0200, Sensei posted:
| Quote: | On 2008-08-27 06:10:21 +0200, Ron Ford <ron@example.invalid> said:
I don't see qsort in K&R as I leaf through or in the index. Did I photograph the wrong target when I thought to have read of qsort in K&R?
Photograph the wrong target? nonsense. Which K&R? See Appendix B in K&R2.
So we have vippstar, who broke his clc cherry to respond to me.
The appendices in K&R are numbered.
Your tjas are too.
If by "number" you mean A, B, and C then yes. My own K&R second edition shows nice "qsort function" and "qsort library function" lines in the index at the end of the book.
|
I see it now, beginning §4.10.
Dankenstein, -- When a new source of taxation is found it never means, in practice, that the old source is abandoned. It merely means that the politicians have two ways of milking the taxpayer where they had one before. 8 H. L. Mencken |
| |
| Page 1 of 3 .:. Goto page 1, 2, 3 Next | |
|
|