In message <BAY103-F40A37F1B47A433040E21FAD2A00@???>, . kibble .
<jelly_bean_junky@???> writes
>
>From: "David S. Madole" <david@???>
> int i = strcspn(emailaddr, "@");
>
> strncpy(lpart_domain->localpart, emailaddr, i);
> lpart_domain->localpart[i] = '\0';
>
> strcpy(lpart_domain->domain, emailaddr + i + 1);
>
>---------------------------------------
>
>Cheers, that's done the trick... [star*]
>
Beware
"@???
Is a legal email address. The local-part stops at the last @ sign, not
the first. Suggest recasting your code to use the strrchr() function
instead.
Regards
--
Paul Overell Internet Platform Development Manager, Thus plc