• scanf does not waint for input
    hello, I'm using the scanf function and it works as expected. But, if there a termination, eg. because of a conflict with the input stream, the next scanf call does not wait for the a input. The...
  • remainer of division
    C has one shortcoming that keeps bothering me. When converting a number from binary to decimal, we typically do something like : int n,d; for (i=0; i<5; ++i) { d=n%10; n/=10; display_area...
  • SCANF
    I am using lpc2919 board and using ARM REAL VIEW compiler and i face the following problems when i use scanf() statement to get values from serial. I have included the Retarget.c file as follows...
  • C++  stream
    Hi, I'm trying to link C++ code using RVDS 6.0. On runtime during C++ initialization (__cpp_initialize_aeabi), it calls the following function:   t._ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...