notebook --note "It is a good day to die."
Error: No space left in the notebook.
Error: 11 is an invalid note number.
notebook --print 3 might print
Note 3: It is a good day to fry!.
Note 3 does not exist!
Error: 11 is an invalid note number.
The notebook contains 4 entries Note 1: It is a good day to die! Note 2: It is a good day to pry! Note 3: It is a good day to fry! Note 4: Hello World!
The notebook is empty.
Note 3 does not exist!
Error: 11 is an invalid note number.
read, write, open, close, lseek
80 24 104 24 128 24 152 12 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1It is a good day to die!It is a good day to pry!It is a good day to fry!Hello World! 0 0 0 0 ...Note:
notebook --note "It is a good day to die!" notebook --note "It is a good day to pry!" notebook --note "It is a good day to fry!" notebook --note "Hello World!"
% notebook --init
initializing the notebook.
% notebook --note "Hello World!"
Searching for the first empty position:
Found it at 0
Seeking to the end of the file
Found at position 80
Writing the message
Saving 80 and 12 at positions 0 and 4
% notebook -p 1
Looking for note 1
Fond 80 and 12 for note one
Note 1: Hello World!