---
name: "mkc_check_sizeof"
section: "1"
platform: "linux"
package: "mk-configure"
version: "0.40.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mkc_check_sizeof"
---

# mkc\_check\_sizeof(1)

detects a sizeof(type).

## NAME

mkc\_check\_sizeof - detects a sizeof(type).

## SYNOPSIS

**mkc\_check\_sizeof** *\[OPTIONS\] type \[headers...\]*

## DESCRIPTION

**mkc\_check\_sizeof** detects sizeof( *type* ) by compiling a test program. Compiled program is not executed, therefore this check is ready for cross-compiling. *headers* is either a single header file or a list of headers, separated by comma.

## OPTIONS

- **-h**

  display help message

## ENVIRONMENT

- **CC**

  Compiler. By default *cc* is used.

- **CPPFLAGS, CFLAGS**

  Options passed to the compiler.

- **MKC\_VERBOSE**

  If set to 1, verbose messages are output to stderr.

- **MKC\_SHOW\_CACHED**

  If set to 1 and MKC\_VERBOSE is set to 1, cached results are output to stderr.

- **MKC\_CACHEDIR**

  Directory where temporary and cache files are created. If unset they are created in a current directory.

- **MKC\_NOCACHE**

  All results are cached unless MKC\_NOCACHE variable is set to 1.

- **MKC\_DELETE\_TMPFILES**

  If set to 1, temporary files are removed.

## EXAMPLES

```
   mkc_check_sizeof 'void*'
   mkc_check_sizeof long-long
   mkc_check_sizeof size_t stdlib.h
```

## AUTHOR

Aleksey Cheusov \<vle@gmx.net\>
