scbuf.c
/*------------------------------------------*/
/* Writes a string of characters to buffer. */
/*------------------------------------------*/
Writes a string of characters to buffer.
Writes a string of characters to buffer .
void write_str(SCREENCELL *newScreen, int x, int y, char *str, char backcolor, char forecolor, BOOL raw) {
  char   *astr=NULL;
  size_t     i=0;
  int wherex=0;
  SCREENCELL *aux = newScreen;
  if (aux!=NULL){
    wherex = x;
    astr = str;
    for(i = 0; i <= strlen(str) - 1; i++) {
      write_ch(aux, wherex, y, astr[i], backcolor, forecolor,raw);
      wherex = wherex + 1;
    }
 }
}
void write_str ( SCREENCELL * newScreen , int x , int y , char * str , char backcolor , char forecolor , BOOL raw ) { char * astr = NULL ; size_t i = 0 ; int wherex = 0 ; SCREENCELL * aux = newScreen ; if ( aux != NULL ) { wherex = x ; astr = str ; for ( i = 0 ; i <= strlen ( str ) - 1 ; i ++ ) { write_ch ( aux , wherex , y , astr [ i ] , backcolor , forecolor , raw ) ; wherex = wherex + 1 ; } } }
Writes a string of characters to buffer.
Writes a string of characters to buffer .
//Writes a string of characters to buffer.