Thread: callback function in c

  1. #1
    Registered User
    Join Date
    Apr 2015
    Posts
    7

    callback function in c

    can anyone pls explain the callback function in c.pls explain how does callback function works.if possible with an example.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Yes, study how qsort() in stdlib.h works.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2015
    Posts
    7
    can you pls tell me?

  4. #4
    Registered User
    Join Date
    May 2014
    Posts
    121
    Callbacks are function pointers: The Function Pointer Tutorials - Index

  5. #5
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    I'm wondering if the original poster is asking about asynchronous type callbacks, such as the completion routine used for Windows ReadFileEx:

    ReadFileEx function

    FileIOCompletionRoutine callback function
    Last edited by rcgldr; 05-18-2015 at 03:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 11-14-2011, 08:08 AM
  2. callback function
    By koszta in forum C Programming
    Replies: 2
    Last Post: 02-23-2009, 12:51 PM
  3. for_each: callback function
    By Russell in forum C++ Programming
    Replies: 4
    Last Post: 06-03-2004, 12:16 PM
  4. Callback function???
    By ripper079 in forum C++ Programming
    Replies: 3
    Last Post: 11-14-2002, 09:29 PM
  5. Pointer to member function as callback function
    By ninebit in forum C++ Programming
    Replies: 10
    Last Post: 03-01-2002, 05:52 AM