Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 82700

Summary: Errors in manpage for 'libpnm'
Product: Gentoo Linux Reporter: Lluís Batlle i Rossell <viric>
Component: [OLD] LibraryAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED WORKSFORME    
Severity: minor CC: vapier
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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