[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] [C] debug udprint funktion ala printf



On Thu, 20 Nov 2003 10:59:55 +0100
Rasmus Andersen <sslug@sslug> wrote:
> On Thu, Nov 20, 2003 at 10:58:08AM +0100, Kim Schulz wrote:
> > hejsa
> > jeg sidder og mangler en debug funktion der virker som printf (altså
> > man kan samle en streng af X parametre). Det er meningen at det skal
> > kunne slået til og fra via f.eks. en define. 
> > Nogen der ligger inde med en sådanne, eller kan give et hint til
> > hvordan det kan laves?
> 
> #ifdef DEBUG
> #define dprintf printf
> #endif
> 
> Ikke compiletestet. Kan vist goeres mere robust ved at skrive

den virker men jeg får en warning når den er slået fra:
gui.c:180: warning: implicit declaration of function `dprintf'


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:10 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] *