Skip to content

Include stddef.h in common headers using NULL #373

@nirmal-mina

Description

@nirmal-mina

Summary

Makes common headers self-contained.

common.h uses NULL in gettimeofday(&t, NULL) but does not include a header that defines NULL.

Changes

  • Add #include <stddef.h> to:
    • 01/common.h
    • 05/common.h
    • 09/common.h

Testing

  • Verified each header can be included independently.
  • Verified existing examples still compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions