Hi,
Thanks for the reply......
Now,I have changed the code as:
FILE *mycpu1;
mycpu1= fopen("/DB/file1","w");
-----------------
fprintf(mycpu1,.................);
-----------------
fclose (mycpu1);
still getting these errors:
error: conflicting types for `mycpu1'
lcm-serial-test3.c:27: error: previous declaration of `mycpu1'
lcm-serial-test3.c:28: warning: data definition has no type or storage class
lcm-serial-test3.c: In function `probe_lcm':
lcm-serial-test3.c:121: warning: passing arg 1 of `fprintf' makes pointer from integer without a cast
lcm-serial-test3.c: In function `main':
lcm-serial-test3.c:279: warning: passing arg 1 of `fclose' makes pointer from integer without a cast
same errors again....
Thanks,Divya