apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Schumann <sas...@apache.org>
Subject Re: apr_snprintf not compliant
Date Sun, 25 Aug 2002 13:29:45 GMT
> > apr_snprintf(p, NULL, 0, "%s BAR", "FOO");
> >
> > currently returns 0, after the changes, it would return 7.
>
> 8, surely?

    sn?printf exclude the NUL byte in the counting process, hence
    it is 7 (3+3+1).

    - Sascha


Mime
View raw message