Re: [hackers] [ubase] Implement streplace() || sin

From: sin <sin_AT_2f30.org>
Date: Thu, 17 Apr 2014 17:17:20 +0100

On Thu, Apr 17, 2014 at 05:49:22PM +0200, FRIGN wrote:
> On Thu, 17 Apr 2014 17:42:30 +0200
> git_AT_suckless.org wrote:
>
> > +static void
> > +streplace(char *s, int a, int b)
> > +{
> > + (...)
> > +}
>
> Why int and not char (or w_char)?

No real reason other than to maintain consistency with other libc functions.

I'd probably name it wstreplace() if it were to receive wchar_t.
Received on Thu Apr 17 2014 - 18:17:20 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 17 2014 - 18:24:14 CEST