× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rob,

One of the things that was mentioned was qsort.  This is a C-library
function that sorts a list of elements.  But to sort elements, qsort has to
have a way to compare two elements (these elements might be structures that
you want sorted on the fourth element).  So you have to write a function
that receives (pointers to) two elements and returns (IIRC) -1, 0 or 1 for
'a < b', 'a = b' and 'a > b'.  When you call qsort, you pass (a pointer to)
this function; every time qsort needs to compare two elements, it 'calls
back' your function.

Joep Beckeringh

----- Original Message -----
From: <rob@dekko.com>
To: <rpg400-l@midrange.com>
Sent: Tuesday, January 15, 2002 5:45 PM
Subject: Call back, was Re: Adding pointers to RPG language.


>
> Ok, now you've got my interest.  What's a callback?
>
> Rob Berendt





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.