On Mon, Oct 11, 2010 at 11:01:30PM +0000, Christos Zoulas wrote: > You could move the loop: > > for (cc = name; *cc && *cc != '='; ++cc) /* no `=' in name */ > continue; You could also use the more concise strcspn. Joerg