Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/15/08 12:41
Read: times


 
#159081 - Valid warnings. But...
Responding to: ???'s previous message
... there are certain requirements that require you to know the exact number of bytes that you are going to write and reason why all this circus.

In fact I have been trying to figure out other ways to avoid doing this but as of now the FTDI Vinculum chip does not offer any other option. A 32 bit field has to be populated with the EXACT number of bytes that you are planning to write on to the Flash Disk prior to calling the Write To File function !

In my case I do know the range of the data that is expected. In such an event suppose I define the field width for every variable and then count the bytes - should it not work ?? It is working right now and I do agree that with a different PC / a different OS I could be in serious trouble !

Raghu

List of 17 messages in thread
TopicAuthorDate
How many bytes will be written ??            01/01/70 00:00      
   return value?            01/01/70 00:00      
      OT: That's why you should never use TABs!            01/01/70 00:00      
         go ahead and use tabs            01/01/70 00:00      
            No, don't!            01/01/70 00:00      
            Any programmers editor            01/01/70 00:00      
               insert spaces for TABs            01/01/70 00:00      
      Oh Yes ... the sprintf()...            01/01/70 00:00      
         So here we go            01/01/70 00:00      
            Wrong!            01/01/70 00:00      
               Valid warnings. But...            01/01/70 00:00      
                  No buts!            01/01/70 00:00      
                     maintability and engineering            01/01/70 00:00      
               Not entirely true?            01/01/70 00:00      
                  You are correct            01/01/70 00:00      
                     Good example of counting dangers            01/01/70 00:00      
                        Good interaction.            01/01/70 00:00      

Back to Subject List