29 Oct
2008
29 Oct
'08
3:55 p.m.
On Wed, Oct 29, 2008 at 03:51:40PM +0100, Jaroslav Kysela wrote:
Maybe better is to just use end char comparsion to save few CPU ticks:
if (kctl.id.name[sizeof(kctl.id.name)-2] != '\0' && ncontrol->name[sizeof(kctl.id.name)-1] != '\0') print_warning_here;
It will be but given that this only happens when controls are created I'd be surprised if performance were a practical issue.