Skip to content

asprintf.c #13

@abc00000

Description

@abc00000

There is a bug on page 190, 2nd edition.
The line:
if(!str)
Should be:
if(!*str)

I also remember another "bug": a semicolon at the end of a one-line-macro, but I do not remember the page.
Regards.

PS:
it's a good book, but some new tips are not so new.
For example, you describe autotools instead of cmake.

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