#pragma margins (C, OS/2, Windows)

The #pragma margins directive specifies the columns in the input line that are to be scanned for input to the compiler.

 

Use the #pragma margins directive if you want to have characters outside certain columns ignored in your source file. The compiler ignores any text in the source input that does not fall within the range specified in the directive.

The variable left specifies the first column of the source input that is to be scanned, and must be between 1 and 65535 , inclusive. The variable right specifies the last column of the source input that is to be scanned. It must be greater than or equal to left and less than or equal to 65535. An asterisk (*) can be assigned to right to indicate the last column of input.

By default, the left margin is set to 1, and the right margin is set to infinity. The default for this directive is #pragma margins(), which has the effect of setting the right margin to infinity.

The #pragma margins directive can be used with the #pragma sequence directive to specify the columns that are not to be scanned for sequence numbers. If the #pragma sequence settings do not fall within the #pragma margins settings, the #pragma sequence directive has no effect.

You can also set margins using the /Sg option.