Home » Developer & Programmer » Precompilers, OCI & OCCI » 1.why and when we have to use memset in pro*c programming give the full details
1.why and when we have to use memset in pro*c programming give the full details [message #94498] Wed, 22 December 2004 07:55 Go to next message
bhanu prasad
Messages: 6
Registered: December 2004
Junior Member
1.why and when we have to use memset in pro*c programming give the full details of it with example?

2.why and when we have to use lenset in pro*c programming give the full details of it with example?.

3.why and when we have to use nullset in pro*c programming give the full details of it with example?
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 Go to previous message
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
Previous Topic: i needed pro* C/C+
Next Topic: Pro*C program throwing error
Goto Forum:
  


Current Time: Fri Mar 29 02:21:15 CDT 2024