Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82700 - Errors in manpage for 'libpnm'
Summary: Errors in manpage for 'libpnm'
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-20 09:30 UTC by Lluís Batlle i Rossell
Modified: 2005-09-29 19:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lluís Batlle i Rossell 2005-02-20 09:30:54 UTC
There is an example in the manpage of libnm. Here are some lines of it:
        for (row = 0; row < inpam.height; row++) {
            pnm_readpamrow(&inpam, tuplerow);
            for (column = 0; column < inpam.width; column++) {
                for (sample = 0; sample < inpam.depth; column++) {
                    grand_total += tuplerow[row][column][sample];
                }
            }
            pnm_writepamrow(&outpam, tuplerow); }

There are two errors. In the third 'for', there should be "sample++". And in the access to tuplerow, it should be:  tuplerow[column][sample]
Comment 1 SpanKY gentoo-dev 2005-09-29 19:37:31 UTC
newer libpnm manual doesnt have an example