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?
A voir également:

2 réponses

fiddy Messages postés 11653 Statut Contributeur 1 847
 
Salut,
Je viens de regarder vite fait sur google.
Oui la fonction textprintf_ex existe, et elle fait partie d'allegro.h a priori.
Le lien devrait peut-être t'aider : https://kaiser-edouard.developpez.com/tutoriels/allegro/partie1/
-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