> > 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
> > 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