“Programming is the art of copy-paste.” (Pedro Serra, 2005)
“Programming is the art of copy-paste.” (Pedro Serra, 2005)
✤ crypt() example
• Description of crypt(): crypt_ref.txt
• Encrypt a password: crypt_create.c
• Verify a password: crypt_verify.c
✤ realloc() example
• Using realloc() function: realloc_example.c
✤ Usage of temporary files
• How to use temporary files with tmpfile(): tmpfile_example.c
✤ Command line engine
• Powerful command line engine based on function pointers. Very easy to use.
• monitor.c, monitor.h, cmd.c, cmd.h, main.c, Makefile.txt, README.txt
• complete package: cmd.tar
✤ FIFO (ADT) implemented using a table
• First in First Out Queue implemented using a fixed size table.
• It also contains some functions to interact with the queue in a thread safe mode: functions started with SFIFO.
• The usage example uses the above command line engine.
• complete package: fifo_table_adt.tar
✤ Circular Buffer (static) implemented using a table
• complete package: cbuff.tar