Re: [dev] [st] Two small patches for string handling.

From: Alexander Sedov <alex0player_AT_gmail.com>
Date: Wed, 27 Feb 2013 00:47:57 +0400

It still conforms to C89/C99, which is the chosen standard for compiling st
according to default config.mk.
Also, good thing about separate patches is that you don't need to apply all
of them. It looks like zero field handling was already casted upon
strtok_r, although in slightly more complicated manner, so this patch is
not really in great need to be applied.


2013/2/27 Roberto E. Vargas Caballero <k0ga_AT_shike2.com>

> > 1. Replaced strtok_r with strsep in strparse, because strsep can
> handle
> > zero-width fields (manpage says so) and because resulting code is
> > clearer.
>
> As far as I know strsep is a BSD extension and it is not a POSIX function,
> so I think we should look for other solution.
>
>
> Best regards,
>
>
Received on Tue Feb 26 2013 - 21:47:57 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 26 2013 - 22:00:03 CET