× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Folks,

replying to myself to summarise what I was doing so far.

First, I fetched the current version of pwgen from github and made some changes, to make it compile cleanly.

- Add a freely available definition of getopt(),
- irgnore isatty() because it's not available on V7R2,
- circumvent the lack of strdup with a crude manual malloc/memcpy.

These changes allow the whole pwgen to be compiled in the CL environment in IBM i. For your convenience, a readymade save file can be found here: https://leela.pocnet.net/~poc/pwgen.savf

(If anyone wants to volunteer by providing some wrapper to the *PGM object to use typical IBM i command line prompts and parameters, feel free. :-) I'm planning to send my changes back to the author anyway, so I can include the wrapper also.)

Indeed, pw_rand wants for parameters now. A bit of research doesn't give me a hint how to implement a NULL pointer in ILR RPG, though. So, I'm stuck again. May I kindly ask for a hint?

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.