Where is ssize_t defined in linux?

前端 未结 2 1603
陌清茗
陌清茗 2021-01-11 22:45

OS: Debian 9 (Linux 4.9)

Compiler: GCC 8.2

Currently I am including (where size_t is defined) and

2条回答
  •  天命终不由人
    2021-01-11 23:29

    ssize_t is defined in sys/types.h.

    Per the POSIX documentation:

    NAME

    sys/types.h - data types

    SYNOPSIS

    #include 
    

    DESCRIPTION

    The header shall define at least the following types:

    ...

    ssize_t

        Used for a count of bytes or an error indication.

提交回复
热议问题