[C]Print a character

Programming, for all ages and all languages.
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: [C]Print a character

Post by Schol-R-LEA »

zenzizenzicube wrote:
Schol-R-LEA wrote:

Code: Select all

typedef struct {
    uint8_t attrib;
    unsigned char glyph;
} TEXT_FRAME;
Shouldn't the character be before the attribute byte in the struct?
Erp. I must have reversed them while editing this, somehow.
bauen1 wrote:Correct me if i'm wrong but should this have the packed attribute ?
You are correct, I spaced on that. Sorry about that. Between these two errors, I feel rather foolish right now.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Post Reply