true). Then (if good), it calls pubsync on its associated stream buffer object (if rdbuf is null, the function returns
-1instead). Finally, it destroys the sentry object before returning.
-1), the function sets the badbit flag, and returns
-1. Otherwise it returns zero, indicating success.
|failbit||The construction of sentry failed (such as when the stream state was not good before the call).|
|badbit||Either the internal call to pubsync returned |
When set, the integrity of the stream may have been affected.
Please, enter a word: test Please enter another word: text The first word began by t The second word began by t