Declarations
- 22 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
Declarations
- Mis à jour le 22 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article
Avez-vous trouvé ce résumé utile ?
Merci pour vos commentaires
- API Functions expect input strings to be zero-terminated
- Use Format4 Z’abcd’ literal constants
- Use STRING instruction to append binary zeroes before passing a string to the function:
STRING I-PASSWORD DELIMITED BY SPACES X'00' DELIMITED BY SIZE INTO W-PASSWORD
- Numbers are usually 32-bit signed integers unless differently specified
02 W-RETURN PIC S9(8) USAGE BINARY
- Passing parameters to the APIs
Every time a parameter name is preceded by an asterisk in the function prototype, this means that the API expects to receive a pointer to the specified parameter, so the Cobol verb BY REFERENCE should be used.
Cet article vous a-t-il été utile ?