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

Typo in the cups programming manual: wrong arguments to ippTagString #5042

Closed

Description

@NilanjanaLodh

In the section in the CUPS programming manual about processing IPP responses , the following snippet is provided as an example:

if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) { printf("printer-state=%s\n", ippTagString("printer-state", ippGetInteger(attr, 0))); }

However, this doesn't compile.
The function prototype of ippTagString is mentioned in the manual as
const char *ippTagString ( ipp_tag_t tag );

But the arguments provided to ippTagString in the above snippet don't match.

Activity

  1. self-assigned this
    on Jul 4, 2017
  2. michaelrsweet commented on Jul 4, 2017

    @michaelrsweet
    Contributor

    Whoops, that should be "ippEnumString". Will fix.

  3. michaelrsweet commented on Jul 4, 2017

    @michaelrsweet
    Contributor

    [master db5424e] Fix a typo in the CUPS Programming Manual (Issue #5042)

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions