printstr.c 387 Bytes
#include "libfb.h"
/*---------------------------------------------------------------------
                  Display string on the screen
  ---------------------------------------------------------------------*/
void
fbPrintStr(u16 color, int curs_x, int curs_y, const char *s)
{
    int i;

    for (i = 0 ; *s != NULL; i ++) {
      fbPutChar(color, curs_x + i, curs_y, *s++);
    }
}