Sun Java System Web Server 6.1 SP12 NSAPI Programmer's Guide

Returns

The number of characters placed into s, not counting the terminating NULL character.