コード例 #1
0
ファイル: display_options.c プロジェクト: ale-naou/Lem_in
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;
}
コード例 #2
0
ファイル: testComment.c プロジェクト: ilyasToumlilt/M2_NMV
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;
}