Skip to content

Bug: Trivial: The online "getting started" C API code appears to have a bad printf directive, at least on linux x86_64 #642

@dtenny

Description

@dtenny

Kuzu version

v0.11.3.16

What operating system are you using?

Fedora 41, x86_64

What happened?

In the C API example from https://docs.kuzudb.com/get-started/ the call to printf appears to be using the wrong directive
for the in64 'since' value:

printf("%s follows %s since %lld \n", name, name2, since);

The %lld should be %ld.

Perhaps this is platform specific and you can't win with the online example. gcc on x86_64 complains about it with -Wall. Also, the example code should include stdlib (for the call to free) as well as stdio, while we're at it.

Are there known steps to reproduce?

No response

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