??? 06/06/07 15:22 Read: times |
#140319 - String to decimal numbers |
Hi Folks,
This problem could be a breeze for such of those C-Experts in the audience. For a particular application, I need to get about four parameters from a PC via RS232 to the MCU . This is done with , .... paramlist = scanf("%16s", buf); .... The PC application simply transmits 16 digits at one go. After this I need to 'extract" the four numbers which are each 4 digits wide. Subsequently each number is then stored in the MCU memory to carry out certain control functions. Some elegant ideas to do the above stripping and storing is most welcome. Thanks for your time. Raghu |