[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Pointer til void functioner



On Fri, 30 Mar 2001, Jarl Erik Gjessing wrote:

> Tak for svaret, men det var ikke helt det jeg mente.
> 
> Jeg har et program, som kan udføre forskællige ting. Functionerne kunne f.eks.
> hedde:
> addUser()
> delUser()
> modifyUser()
> 
> 
> En anden function skal uden at vide hvilken af disse tre funtioner som er
> aktive, kunne koble dem af hvad de gør.
> Dette med en egen lavet function hedder releaseFunc.
> Denne kunne så hedde:
> releaseFunc( addUser(), doIt() );
> releaseFunc( delUser(), doIt() );
> releaseFunc( modifyUser(), doIt() );
> 
> Jeg ville så bare gerne kunne kalde releaseFunc( "pointer to
> function", doIt() );

Jeg forstår ikke dit problem - du må beskrive det yderligere.

releaseFunc ( addUser(), doIt() ); 

sender jo netop en peger til addUser til releaseFunc?

Mads

-- 
Mads Bondo Dydensborg.                               sslug@sslug
NT is a closed box of point tools linked by an untouchable matrix of
invisible semaphores. These bonds are surrounded by a blizzard of
mystifying, contradictory, and forever-changing OS documentation. 
Under an NT regime, almost all Unix users will lose the ability to 
exert low-level control over data and applications.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *