FIND YOUR NEXT FEW LINES

Results for “C”

Small, practical examples. Search by task or narrow things down below.

3000 snippets foundClear filters
C++Filesystem operations

Read the byte size of a regular file

C++: file_size reads filesystem metadata without loading file contents.

C++✓ Tested
Linux CommandsGetting Started

Read the directory portion of a path

Linux Commands: Read the directory portion of a path using GNU/Linux commands in an empty practice directory.

Linux Commands✓ Tested
Linux CommandsGetting Started

Read the end of piped text

Linux Commands: Read the end of piped text using GNU/Linux commands in an empty practice directory.

Linux Commands✓ Tested
Linux CommandsGetting Started

Read the filename portion of a path

Linux Commands: Read the filename portion of a path using GNU/Linux commands in an empty practice directory.

Linux Commands✓ Tested
JavaScriptArray traversal & selection

Read the final array item with a negative index

JavaScript: at supports negative positions counted from the end.

JavaScript✓ Tested
TypeScriptArray traversal & selection

Read the final array item with a negative index

TypeScript: at supports negative positions counted from the end.

TypeScript✓ Tested
Bash ScriptsGetting Started

Read the first array element

Bash Scripts: Read the first array element with a small standalone Bash program.

Bash Scripts✓ Tested
SQLWindow analytics

Read the next row’s value

SQL: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQL✓ Tested
SQL ServerWindow analytics

Read the next row’s value

SQL Server: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQL Server✓ Tested
PostgresWindow analytics

Read the next row’s value

Postgres: LEAD reads a later ordered row without a self join and supports a fallback at the end.

Postgres✓ Tested
SQLiteWindow analytics

Read the next row’s value

SQLite: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQLite✓ Tested
SQLSchema design & transactions

Read updated base-table values through a view

SQL: An ordinary view reflects later changes to its underlying data.

SQL✓ Tested