×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.



  • Subject: IFS api openDir() const vs value
  • From: "Danny Rodius" <danny.rodius@xxxxxxxxx>
  • Date: Mon, 10 Jul 2017 12:17:15 +0200
  • Ironport-phdr: 9a23:9iCdqxXjwpdi5eSuozhycCllNHjV8LGtZVwlr6E/grcLSJyIuqrYYxSGt8tkgFKBZ4jH8fUM07OQ6PG/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdwIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/XlMJ+kaxVrhGuqBNjxIDUfJqYO+BicqPSZd4WW3ZNUthXWidcAo28dYwPD+8ZMOpWoYfyvV0OrR2+BAKxGO3vzSJHhn7r3a0h3egqDAbL0xE6ENIItnTVrM/5NL0VUe+ozanI0C7DYuhN2Tf+6InIdA4uoe2WUb1rb8Xc0E8iHB7GgFWIsYHpIjeY2+sXv2WZ7OdsT/+jhm4kpg1rrTWiwNonhJPTiYIP0F/E8D10wIMyJdKlVkF2ecWkEJ5MtyGCMIt2X98iT3louCkkzr0Gvoa2ciYQx5QhwR7ea+aJfpaQ7hLiUuaePyt4iWp4dL+7iBu+60qtx+7mWsWp0FtHrTBJn9bUunAIzRPT68yHSvVn/kem3DaCzx3c5ftCIUAylavXMYQhwrktmZoSrETDBTT7mF71jK6WcEUr5PSo5/78bbr4vpOcLZN7ihniMqQyncyyGfg2PBIPUWWU5eiwyKTv80viTbVPj/05j7PZv4rcJcQUuKG1GRNa0oEm60X3MzDzhO4gsiVfdBdhUBeGg5LgPV7DZvv/CKHsrU6rlWIh6/nAOKypOJLBL2XY2v+1cb977V8a0g0/zM1Ez4lXG7cMPLT5Vxmi55TjEhYlPlnskK7cA9Jn29ZGVA==
  • List-archive: <http://archive.midrange.com/rpg400-l/>
  • List-help: <mailto:rpg400-l-request@midrange.com?subject=help>
  • List-id: "RPG programming on the IBM i \(AS/400 and iSeries\)" <rpg400-l.midrange.com>
  • List-post: <mailto:rpg400-l@midrange.com>
  • List-subscribe: <http://lists.midrange.com/mailman/listinfo/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=subscribe>
  • List-unsubscribe: <http://lists.midrange.com/mailman/options/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=unsubscribe>

Hi,



Try to use the ifs function to open and read a directory.



Doc state the following:

DIR *opendir(const char *dirname)



However when we write the following PR it's not working



d openIFSDir Pr * ExtProc('opendir')

d * const options( *string )



Found the similar definition in Scott klements 'Working with the IFS in RPG'
chapter.7

Instead of using the const he uses the value. But isn't telling why.



When running now I get a correct opendir result.



Is there someone who know the reason for this difference between the doc and
the real world?



Best regards,

Danny


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.