FIND YOUR NEXT FEW LINES

Results for “C”

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

3000 snippets foundClear filters
SQL ServerConstraints & defaults

Reject a negative quantity with CHECK

SQL Server: Combine NOT NULL and CHECK because an unknown NULL check result is normally accepted.

SQL Server✓ Tested
PostgresConstraints & defaults

Reject a negative quantity with CHECK

Postgres: Combine NOT NULL and CHECK because an unknown NULL check result is normally accepted.

Postgres✓ Tested
SQLiteConstraints & defaults

Reject a negative quantity with CHECK

SQLite: Combine NOT NULL and CHECK because an unknown NULL check result is normally accepted.

SQLite✓ Tested
GoFiles & paths

Reject an escaping relative path

Reject an escaping relative path using a complete Go program with explicit sample inputs.

Go✓ Tested
GoErrors & validation

Reject an integer outside a byte’s range

Reject an integer outside a byte’s range using a complete Go program with explicit sample inputs.

Go✓ Tested
Arduino / CText & bounded buffers

Reject an integer with trailing characters

Arduino / C: strtol exposes an end pointer so a parser can require the entire token.

Arduino / C✓ Tested
Arduino / CEEPROM & program memory

Reject an unsupported settings version

Arduino / C: A version byte lets firmware fall back when stored settings use another format.

Arduino / C✓ Tested
SQLConstraints & defaults

Reject duplicate business identifiers

SQL: A UNIQUE constraint protects a business key independently of the primary key.

SQL✓ Tested
SQL ServerConstraints & defaults

Reject duplicate business identifiers

SQL Server: A UNIQUE constraint protects a business key independently of the primary key.

SQL Server✓ Tested
PostgresConstraints & defaults

Reject duplicate business identifiers

Postgres: A UNIQUE constraint protects a business key independently of the primary key.

Postgres✓ Tested
SQLiteConstraints & defaults

Reject duplicate business identifiers

SQLite: A UNIQUE constraint protects a business key independently of the primary key.

SQLite✓ Tested
C++Numeric parsing & calculations

Reject infinite and NaN numeric values

C++: std::isfinite excludes special floating-point values.

C++✓ Tested