| Thread Tools | Search this thread |
|---|
brunocalado
| July 3, 2009 5:30 PM PDT External Procedure | ||||
I saw something really interesting on qsort sample. It is possible to define and pass as argument a procedure which is defined outside the qsort procedure. Dow do I do this? PROGRAM USE IFPORT integer(2), external :: cmp_function CALL QSORT(A, size, 4, cmp_function) END PROGRAM integer(4) function cmp_function(a1, a2) integer(4) a1, a2 cmp_function=a2-a1 end function | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8290 users have contributed to 31236 threads and 99111 posts to date. |
|---|
| In the past 24 hours, we have 7 new thread(s) 19 new posts(s), and 24 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member zq.x |