Langage c

nadia hareb Messages postés 122 Statut Membre -  
vlmath Messages postés 833 Statut Contributeur -
Bonjour,
je compile un prog c sur dev c++:mais je trouve un probleme de compilation dans la fonction
textprintf_ex(screen, font, 500, 500,1, makecol(255, 255, 255) , "%2d:%2d:%2d",he,me,se );
}
question:
*estce que c'est une fonction gejas definit?
*si oui dans quelle bib elle apartient?
Configuration: Windows XP
Firefox 2.0.0.14

2 réponses

  1. vlmath Messages postés 833 Statut Contributeur 160
     
    Salut,

    Je confirme, elle viens d'allegro.

    Voici l'implémentation :
    void textprintf_ex(BITMAP *bmp, AL_CONST FONT *f, int x, int y, int color, int bg, AL_CONST char *format, ...)
    {
       char buf[512];
       va_list ap;
       ASSERT(bmp);
       ASSERT(f);
       ASSERT(format);
    
       va_start(ap, format);
       uvszprintf(buf, sizeof(buf), format, ap);
       va_end(ap);
    
       textout_ex(bmp, f, buf, x, y, color, bg);
    }


    Source : http://www.google.com/codesearch?hl=fr&q=lang:c+textprintf_ex+show:-k5Vexomttk:_lzoeEDvppM:ZBcEs2Nv7hQ&sa=N&cd=1&ct=rc&cs_p=http://freshmeat.net/redir/allegro/201/url_tgz/allegro-4.2.1.tar.gz&cs_f=allegro-4.2.2/src/text.c

    @Bientôt et bonne programmation.

    PS : Google code est vraiment super ...
    -1