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

data structer in programming?

how i can implement variable length data base ( or data storage structure)in keil C programe?

Parents Reply Children
  • Then I would suggest something simple, like a ring buffer. Easy to throw away old entries when new data arrives and you can't read out the current log.

    You will have to compute yourself your needs.

    How large user ID number for each log entry?
    How much data for the time stamp? Depends on how long time you must be able to span, and your required resolution.
    How much data for additional information, such as ok/fail on PIN code entering etc.

    But your project includes thinking about these kind of things. You will have to make a design. You will then have to review it. Then you will have to modify any weak spots you find. Then you implement and debug.