Skip to content

integer types use #21

@vladak

Description

@vladak

Add a module on when to use size_t and when other integer types.

E.g. https://stackoverflow.com/questions/131803/unsigned-int-vs-size-t

Plus examples on working with file offset (seek, read, write, ...), etc.
The size_t type is the unsigned integer type that is the result of the sizeof
operator (and the offsetof operator), so it is guaranteed to be big enough to
contain the size of the biggest object your system can handle (e.g., a static
array of 8Gb).

Also add an idea to use 'u' for an unsigned integer in for

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions