On Thu, Apr 29, 2010 at 11:41:43AM -0700, Guy Harris wrote:
> 
> On Apr 29, 2010, at 7:38 AM, [email protected] wrote:
> 
> > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=32597
> > 
> > User: morriss
> > Date: 2010/04/29 07:38 AM
> > 
> > Log:
> > Use strchr() instead of index()--Windows doesn't appear to have the latter.
> 
> Some older System V's also might not have the latter, although, these days, 
> most UN*Xes have both.
> 
> (V7 had index() and rindex(), and BSD came from that stream; System III, and 
> possibly the earlier USG/USDL UNIXes, renamed them to strchr() and strrchr(). 
>  As indicated, most UN*Xes these days offer both, to support building 
> software written for both flavors.
> 
> The ANSI C standard went with strchr() and strrchr(), so that's what should 
> be used in any case.)

What about g_utf8_strchr() ?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to