Home » Developer & Programmer » Precompilers, OCI & OCCI » problem with fopen in Pro*C
problem with fopen in Pro*C [message #237927] Wed, 16 May 2007 02:43 Go to next message
ataufique
Messages: 79
Registered: November 2006
Member
Hi..
I am having some problem migrating my C programs in Pro*c
In c my working syntax is given below

if ((calls_file = fopen(filename,"w"))==NULL )
{
sprintf(error_buffer,"Error! Openning file %s",filename);
errmesg(5999,PROG_ID,error_buffer);
return ERROR;
};
fprintf(calls_file, "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM");

If i use the the same for pro*c this creates a file without any data i.e fprintf command doesn't write any thing to this file.


Please Help

Thanks
Re: problem with fopen in Pro*C [message #238164 is a reply to message #237927] Wed, 16 May 2007 22:16 Go to previous message
ataufique
Messages: 79
Registered: November 2006
Member
Anyone who know this.........
Previous Topic: Problem in calling invalid packages in pro*c
Next Topic: Call Package Oracle from Pro*C
Goto Forum:
  


Current Time: Thu Mar 28 04:23:58 CDT 2024