This library is fully staticly linked. There should be no external dependencies. When building, use build.sh, not make. Use it as follows: build.sh -m "useful comment on changes being made" When making TUI menus, try to use the first leter of the command and the key to press to execute that command. For example, if the command is "Open file" try to use a keypress of "o" upper or lower case to signal to open the file. Use this instead of number keyed menus when possible. In the command, the letter should be underlined that signifies the command. When deleting, everything gets moved to the Trash folder. MAKEFILE POLICY: There should be only ONE Makefile in the entire project. All build logic (library, tests, examples, websocket) must be consolidated into the root Makefile. Do not create separate Makefiles in subdirectories as this creates testing inconsistencies where you test with one Makefile but run with another. ### Sinple Text User Interfaces (TUI) When making TUI menus, try to use the first leter of the command and the key to press to execute that command. For example, if the command is "Open file" try to use a keypress of "o" upper or lower case to signal to open the file. Use this instead of number keyed menus when possible. In the command, the letter should be underlined that signifies the command. q and x should be reserved for the quit command. ## Buffer Size Guidelines to Prevent Compilation Warnings. ### Path Handling - Always use buffers of size 1024 or PATH_MAX (4096) for file paths - When concatenating paths with snprintf, ensure buffer is at least 2x the expected maximum input - Use safer path construction patterns that check lengths before concatenation ### String Formatting Safety - Before using snprintf with dynamic strings, validate that buffer size >= sum of all input string lengths + format characters + 1 - Use strnlen() to check actual string lengths before formatting - Consider using asprintf() for dynamic allocation when exact size is unknown - Add length validation before snprintf calls ### Compiler Warning Prevention - Always size string buffers generously (minimum 1024 for paths, 512 for general strings) - Use buffer size calculations: `size >= strlen(str1) + strlen(str2) + format_overhead + 1` - Add runtime length checks before snprintf operations - Consider using safer alternatives like strlcpy/strlcat if available ### Code Patterns to Avoid - Fixed-size buffers (512 bytes) for path operations where inputs could be 255+ bytes each - Concatenating unchecked strings with snprintf - Assuming maximum path component sizes without validation