FIND YOUR NEXT FEW LINES
Results for “memo”
Small, practical examples. Search by task or narrow things down below.
40 snippets foundClear filters
Parse an integer with validation
Validate range and trailing characters when parsing a C integer with strtol.
C✓ Tested
Process a text file one line at a time
Java: Use a buffered reader to avoid loading a large file into memory.
Java✓ Tested
Set and test bit flags
Use unsigned masks to combine and test C flags.
C✓ Tested
Swap two integers
Use a temporary value to swap C integers without arithmetic overflow.
C✓ Tested