Technically, yes, but it would be a serious coding mistake, from the maintenance point of view. Not portable things should be abstracted so that they are defined only once.Originally Posted by SpudNuts
Maintenance hell:
Maintenance heaven:Code:system("cls"); <...> system("cls"); <...> system("cls"); <...> system("cls");
See the difference ?Code:void cls(void) { system("cls"); } <...> cls(); <...> cls(); <...> cls(); <...> cls();