Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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