Next: DL.h, Previous: L_buffer.h, Up: Interface
This component is used to record events and times with a lower time and space overhead than the ‘L_buffer.h’ component. Instead of using a ‘printf’ style string we simply record the time and a pointer to a string identifying the event in a circular buffer.
Note 0: the string arguments should not be modified after a call since we record pointers to the strings rather than the strings themselves.
Note 1: there is no printf style formatting, e.g. ‘%d’ in this package.
Used to define buffers, it is similar to ‘FILE*’ type in ‘stdio.h’. To create an instance use ‘L_times_create’.
These are used to create or delete a buffer which can contain size messages.
A buffer created by ‘L_times_create’ is set up so that the new messages will overwrite the oldest messages in the buffer. If you wish to disable this overwriting, e.g. to keep the first few messages messages you could use ‘L_times_wraparound(b,0)’.