void display_options(t_env *e) { option('r', e->opt) == 1 ? display_roominfos(e) : 0; option('l', e->opt) == 1 ? display_roomlinks(e) : 0; option('w', e->opt) == 1 ? display_roomweight(e) : 0; option('C', e->opt) == 1 ? display_comment(e) : 0; }
int main(int argc, char const *argv[]) { struct comment *c; if(c = new_comment(6, "test1", 10, "J. Sopena", 9, "Un texte")) display_comment(c); printf("\n"); if(c = new_comment(6, "test2", -1, "J. Sopena", 9, "Un texte")) display_comment(c); printf("\n"); if(c = new_comment(6, "test2", 10, "J. Sopena", -1, "Un texte")) display_comment(c); printf("\n"); return 0; }