home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1057 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  46 lines

  1. Path: Lena.grolier.fr!news
  2. From: jeffp@club-internet.fr (UNREGISTERED VERSION)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: How works SetFunction ?
  5. Date: 14 Jan 1996 23:05:48 GMT
  6. Organization: Grolier Interactive Europe     
  7. Message-ID: <1080.6584T752T2078@club-internet.fr>
  8. NNTP-Posting-Host: ptp32.club-internet.fr
  9. X-Newsreader: THOR 2.21 (Amiga;TCP/IP) *UNREGISTERED*
  10.  
  11.  Please, I need to patch an exec function; but i don't understand
  12.   how work the exec'SetFunction():
  13.  
  14.   oldfunc=SetFunction(library,oldFuncOffset,newFuncPtr)
  15.  
  16.   what is oldFuncOffset?
  17.  
  18.   is someone can help me, explain or better just email me
  19.   a working example it will great!
  20.  
  21.  
  22.   i want to modify the old fonction , like snoopdos in fact
  23.   ex:
  24.     newfunc(arg)
  25.     {
  26.       printf("dummy\n"); or arg->dum |= ...;
  27.       oldfunc(arg);
  28.     }
  29.  
  30.   i'm using SAS/C 6.5 and OS 3.0.
  31.   thank 
  32.                                                      JFP
  33. ---
  34.                           \\\V///
  35.                           |     |
  36.                          (| ░ ░ |)
  37.                           |  U  |
  38.    --------------------oOOo\ - /-oOOo------------------
  39.   |               |         ---                        |
  40.   |    //         |                                    |
  41.   |\\ //  AMIGA   |   EMAIL : jeffp@club-internet.fr   |
  42.   | \X/  4000/40  |  IRCNick: JFP (#amigafr)           |
  43.   |    10Mo-HD850 |  pseudo : LOLOSoft                 |
  44.   |_______________|____________________________________|
  45.  
  46.