Skip to main content

C

Versions

  • Clang 8 / C18 with glibc (POSIX)

Command

clang \
    -std=c18 \
# Libraries. See Packages section below for more details.
    -lm -lcrypto -ldl -pthread -lcriterion -lsqlite3 \
    -Wall -Wextra \
# Optional preloaded code
    preloaded.c \
# Solution and tests
    solution.c \
    tests.c \
# Hooks for reporting
    criterion-hooks.o
clang \
    -std=c18 \
# Libraries. See Packages section below for more details.
    -lm -lcrypto -ldl -pthread -lcriterion -lsqlite3 \
    -Wall -Wextra \
# Optional preloaded code
    preloaded.c \
# Solution and tests
    solution.c \
    tests.c \
# Hooks for reporting
    criterion-hooks.o

Test Frameworks

Criterion

Timeout

12 seconds

Packages

  • C math functions (libm)
  • OpenSSL (libcrypto)
  • Dynamic Linking (libdl)
  • POSIX threads (libpthread)
  • Criterion testframework (libcriterion)
  • SQLite (libsqlite3)

Services

None

Language ID

c