- BY Luke Johnson
- POSTED IN datingranking log in
- WITH 0 COMMENTS
- PERMALINK
- STANDARD POST TYPE
Example: The fresh _In_ Annotation
_In_ determine “read-only”. A familiar error is to apply _In_ so you can a parameter which should have the _Inout_ annotation as an alternative.
If you utilize Graphic Business Password Study with this example, they validates the callers admission a non-Null pointer so you can a keen initialized buffer to possess pInt . In this situation, pInt pointer can not be NULL.
Example: This new _In_opt_ Annotation
_In_opt_ is equivalent to _In_ , other than the new type in factor try said to be NULL and you can, for this reason, the big event is look for that it.
Example: The fresh _Out_ Annotation
_Out_ aids a familiar scenario where a low-NULL pointer one to points to a feature shield try passed when you look at the as well as the means initializes the new function. The brand new caller has no to initialize the fresh new barrier up until the name; the named means intends to initialize they before it output.
Graphic Facility Password Investigation Product validates that person tickets a good non-NULL tip so you can a barrier getting pInt and that this new buffer is actually initialized from the mode earlier production.
Example: Brand new _Out_opt_ Annotation
_Out_opt_ matches _Out_ , apart from brand new factor are said to be NULL and you may, for this reason, case is to check for that it. (more…)
Recent Comments