|
Re: 1.why and when we have to use memset in pro*c programming give the full det [message #94518 is a reply to message #94498] |
Thu, 30 December 2004 22:35 |
Giridhar
Messages: 38 Registered: May 2001
|
Member |
|
|
memset is required before we populate output host variables from our sql statement.It ensures that there is no garbage value in our output host variables.
null termination is required for varchar variables. varchar variables can have variable length. C requires NULL Termination for every string. As oracle only populates only the .len and .arr elements, we have to null terminate the string.
Giridhar
|
|
|