This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error while using 'sprintf'

Hi, I have added the library, stdio.h and written a piece of code as :

int TempVal;
char w[10];
TempMeas = 25.56;

TempVal = sprintf(w,"%f",TempMeas);

I am geeting following error while compiling :

51 COMPILER V8.08 - SN: Eval Version
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007
*** WARNING C500 IN LINE 1 OF DEMO1_27FEB_UART.C: MISSING LICENSE ID CODE (LIC) IN 'TOOLS.INI'

C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)
Link in progress...
C:\SiLabs\MCU\IDEfiles\C51\BIN\BL51.EXE @E:\Rajesh\Rajesh\Cygnal\cyglink.txt

BL51 BANKED LINKER/LOCATER V6.05 - SN: Eval Version
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007
E:\Rajesh\Rajesh\Cygnal\demo1_27feb_UART.obj TO E:\Rajesh\Rajesh\Cygnal\demo1_20feb RS(256) PL(68) PW(78)

*** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: E:\RAJESH\RAJESH\CYGNAL\DEMO1_27FEB_UART.OBJ

Can anyone suggest me how to fix this problem.

0