#include <stdint.h>
#include <stdio.h>

struct cRGB
{
    uint8_t g;
    uint8_t r;
    uint8_t b;
};

struct cRGB blubb(void)
{
    return (struct cRGB){12,34,56};
}

struct cRGB blubb2(void)
{
    struct cRGB foo;
    foo.g = 99;
    foo.r = 99;
    foo.b = 99;
    return foo;
}

void gnoerps(struct cRGB* p)
{
    p->g = 77;
    p->r = 88;
    p->b = 99;
}

int main(void)
{   
    struct cRGB farbe = blubb(); 
    printf("blubb:   ( %u | %u | %u )\n", farbe.g, farbe.r, farbe.b);
    farbe = blubb2();
    printf("blubb2:  ( %u | %u | %u )\n", farbe.g, farbe.r, farbe.b);
    gnoerps(&farbe);
    printf("gnoerps: ( %u | %u | %u )\n", farbe.g, farbe.r, farbe.b);
}
