Design Pattern Examples
Overview of object-oriented design patterns
helpers Directory Reference
Directory dependency graph for helpers:
helpers

Files

file  helpers/_countof.h [code]
 
file  checkforkey.c [code]
 Implementation of the checkforkey() function for determining if a key has been pressed.
 
file  helpers/checkforkey.h [code]
 Declaration of the checkforkey() function for determining if a key has been pressed.
 
file  conststringlist.c [code]
 Implementation of the supporting functions for the ConstStringList to work with a list of constant strings.
 
file  conststringlist.h [code]
 Declaration of the ConstStringList structure and supporting functions to work with a list of constant strings.
 
file  cursor.c [code]
 Implementation of the setcursorposition() and getcursorposition() functions for manipulating the cursor position on Windows terminals.
 
file  helpers/cursor.h [code]
 Declaration of the setcursorposition() and getcursorposition() functions for manipulating the cursor position on Windows terminals.
 
file  datetime.c [code]
 Implementation of the DateTime functions, datetime_to_string() and datetime_now(), to simplify getting the local time as a string.
 
file  helpers/DateTime.h [code]
 Declaration of the DateTime functions, datetime_to_string() and datetime_now(), to simplify getting the local time as a string.
 
file  dynamicstring.c [code]
 Implementation of the supporting functions for the DynamicString structure to work with dynamic strings.
 
file  dynamicstring.h [code]
 Declaration of the DynamicString structure and supporting functions to work with dynamic strings.
 
file  enablevtmode.c [code]
 Implementation of the enableVTMode() function for configuring standard input to support the virtual terminal mode (on Windows).
 
file  helpers/enablevtmode.h [code]
 Declaration of the enableVTMode() function for configuring standard input to support the virtual terminal mode (on Windows).
 
file  formatstring.c [code]
 Implementation of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it.
 
file  helpers/formatstring.h [code]
 Declaration of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it.
 
file  makelocaltime.c [code]
 Implementation of the makelocaltime() function to convert a time_t to a struct tm containing the local time.
 
file  helpers/makelocaltime.h [code]
 Declaration of the makelocaltime() function to convert a time_t to a struct tm containing the local time.
 
file  mapofint.c [code]
 Implementation of the supporting functions for the MapOfInt structure for managing a map of integers keyed by a string.
 
file  mapofint.h [code]
 Declaration of the MapOfInt structure and supporting functions for managing a map of integers keyed by a string.
 
file  mapofstrings.c [code]
 Implementation of the supporting functions for the MapOfStrings structure for managing a map of strings keyed by another string.
 
file  helpers/mapofstrings.h [code]
 Declaration of the MapOfStrings structure and supporting functions for managing a map of strings keyed by another string.
 
file  mutex.c [code]
 Implementation of the functions used for working with the Mutex structure that deal with mutexes.
 
file  mutex.h [code]
 Declaration of the Mutex structure and supporting functions for working with mutexes.
 
file  readkey.c [code]
 Implementation of the readkey() function, a blocking read for a key from the keyboard.
 
file  helpers/readkey.h [code]
 Declaration of the readkey() function, a blocking read for a key from the keyboard.
 
file  replace.c [code]
 Implementation of various helper functions for replacing characters or strings in a string.
 
file  helpers/replace.h [code]
 Declaration of various helper functions for replacing characters or strings in a string.
 
file  sleep.c [code]
 Implementation of the sleep() function, for sleeping for a number of milliseconds.
 
file  helpers/sleep.h [code]
 Declaration of the sleep() function, for sleeping for a number of milliseconds.
 
file  split.c [code]
 Implementation of the functions for working with the SplitList structure that is used for splitting a string based on one or more delimiters.
 
file  helpers/split.h [code]
 Declaration of the SplitList structure and the functions for working with splitting a string based on one or more delimiters.
 
file  stack.c [code]
 Implementation of the supporting functions for the StackEntry structure that represents a simple stack.
 
file  stack.h [code]
 Declaration of the StackEntry structure and the supporting functions that represents a simple stack.
 
file  strdup.h [code]
 Declaration of the STRDUP macro that hides the differences between how strdup() is declared in different operating systems.
 
file  stringlist.c [code]
 Implementation of the supporting functions for the StringList structure that works with a list of allocated strings.
 
file  helpers/stringlist.h [code]
 Declaration of the StringList structure and supporting functions to work with a list of allocated strings.
 
file  strstri.c [code]
 Implementation of the strstri() function, case-insensitive string search for narrow character strings.
 
file  helpers/strstri.h [code]
 Declaration of the strstri() function, case-insensitive string search for narrow character strings.
 
file  titlecase.c [code]
 Implementation of the titlecase() function, for making a word lowercase with the first letter uppercase.
 
file  helpers/titlecase.h [code]
 Declaration of the titlecase() function, for making a word lowercase with the first letter uppercase.
 
file  uint32_to_binary.c [code]
 Implementation of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C does not normally provide a printf() converter to binary.
 
file  helpers/uint32_to_binary.h [code]
 Declaration of the uint32_to_binary() function, that converts a 32-bit unsigned integer to a binary string. Need this since C does not normally provide a printf() converter to binary.
 
file  uintarray.c [code]
 Implementation of the supporting functions for the UIntArray structure that represents an array of 32-bit unsigned integers.
 
file  uintarray.h [code]
 Declaration of the UIntArray structure and the supporting functions that represents an array of 32-bit unsigned integers.