Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dosgetenv [2021/08/31 06:29] – prokushev | en:docs:fapi:dosgetenv [2021/12/05 09:57] (current) – prokushev | ||
---|---|---|---|
Line 13: | Line 13: | ||
===== Parameters ===== | ===== Parameters ===== | ||
- | * EnvSegment (PSEL) - output : Address of the selector for the environment segment. | + | * EnvSegment ([[PSEL]]) - output : Address of the selector for the environment segment. |
- | * CmdOffset (PUSHORT) - output : Address of the offset to the command line within the environment segment. | + | * CmdOffset ([[PUSHORT]]) - output : Address of the offset to the command line within the environment segment. |
===== Return Code ===== | ===== Return Code ===== | ||
- | * rc (USHORT) - return: | + | rc ([[USHORT]]) - return: |
* 0 NO_ERROR | * 0 NO_ERROR | ||
Line 55: | Line 55: | ||
</ | </ | ||
- | ===== Example Code ===== | + | ==== Example Code ==== |
The following example shows how one may obtain information for program initialization. The program locates the environment segment and prints the name of the command from the command line. It then obtains the OS/2 version number and prints it. | The following example shows how one may obtain information for program initialization. The program locates the environment segment and prints the name of the command from the command line. It then obtains the OS/2 version number and prints it. | ||
Line 100: | Line 100: | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// |