};
-static char *get_next_word(char *s, int *i);
int drawdialogueline(char *l)
{
//ok im going to try doing this letter by letter :)
int x = CHARADISPLAYWIDTH + DLGPADDING;
int y = DLGY + DLGPADDING * 2;
- char *w;
+ char *c = "a";
int i = 0;
-
- while ((w = get_next_word(l+i, &i)) != "\0") {
- printf("%d", i);
+ //printf(l);
+ while ((c = l+i) != "\0") {
+ printf(c);
+ i++;
};
+ return 1;
+
//DrawText(l, CHARADISPLAYWIDTH + DLGPADDING, DLGY + DLGPADDING * 2 ,20, BLACK); //add text wrapping later
};
}
-char *get_next_word(char *s, int *i)
-{
- char c;
- char *w = "";
- int n = 0;
-
- while ((c = s[*i]) != ' ') {
- //printf(&c);
- w[n] = c; //printf("char added to word");
- n++;
- *i += 1;
- if (c == '\0') {return w;};
- };
- w[n] = '\0';
- return w;
-}
-
-
-
-