| 1 | #cxx . . $ `<file>/frmts/pcraster/libcsf/gattridx.c`/include "csf.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csf.h`/ |
| 2 | #include "csfimpl.h"cxx . . $ `<file>/frmts/pcraster/libcsf/csfimpl.h`/ |
| 3 | |
| 4 | /* search attribute index in block (LIBRARY_INTERNAL) |
| 5 | * returns index in block where id is found, NR_ATTR_IN_BLOCK if not found |
| 6 | */ |
| 7 | int CsfGetAttrIndexcxx . . $ CsfGetAttrIndex(b6528ee76141eed9).( |
| 8 | CSF_ATTR_IDcxx . . $ CSF_ATTR_ID# id, /* id to be found */ |
| 9 | const ATTR_CNTRL_BLOCKcxx . . $ ATTR_CNTRL_BLOCK# *b) /* block to inspect */ |
| 10 | { |
| 11 | int i = 0; |
| 12 | |
| 13 | while(i < NR_ATTR_IN_BLOCKcxx . . $ `frmts/pcraster/libcsf/csfimpl.h:97:9`!) |
| 14 | { |
| 15 | if (b->attrscxx . . $ ATTR_CNTRL_BLOCK#attrs.[i].attrIdcxx . . $ ATTR_REC#attrId. == id) |
| 16 | break; |
| 17 | i++; |
| 18 | } |
| 19 | return(i); |
| 20 | } |