Michael Haggerty writes:
> +static int parse_precheck(const char *s, unsigned int *flags)
> +{
> + const char *number;
> +
> + if (isspace(*s)) {
> + if (!(*flags & NUM_LEADING_WHITESPACE))
> + return -NUM_LEADING_WHITESPACE;
> + do {
> +
On Wed, Mar 18, 2015 at 6:47 PM, Michael Haggerty wrote:
> On 03/18/2015 07:27 PM, Eric Sunshine wrote:
>> On Tuesday, March 17, 2015, Michael Haggerty wrote:
>>> Implement wrappers for strtol() and strtoul() that are safer and more
>>> convenient to use.
>>> + * The lowest 6 bits of flags hold t
On 03/18/2015 07:27 PM, Eric Sunshine wrote:
> On Tuesday, March 17, 2015, Michael Haggerty wrote:
>> Implement wrappers for strtol() and strtoul() that are safer and more
>> convenient to use.
>>
>> Signed-off-by: Michael Haggerty
>> ---
>> diff --git a/numparse.c b/numparse.c
>> new file mode 1
On Tuesday, March 17, 2015, Michael Haggerty wrote:
> Implement wrappers for strtol() and strtoul() that are safer and more
> convenient to use.
>
> Signed-off-by: Michael Haggerty
> ---
> diff --git a/numparse.c b/numparse.c
> new file mode 100644
> index 000..90b44ce
> --- /dev/null
> +++ b
4 matches
Mail list logo