INF:Run-Time Routines Assume That Direction Flag Is Clear in C

ID Number: Q50712

5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

The C run-time routines assume that the direction flag is cleared. If

you are using other functions with the C run-time functions, you must

ensure that the other functions leave the direction flag alone or

restore it to its original condition. Expecting the direction flag to

be clear upon entry makes the run-time code faster and more efficient.

More Information:

The run-time functions that use the direction flag include the string

manipulation and buffer manipulation routines.

This is documented on Page 365 of the "Microsoft Macro Assembler

Programmer's Guide," for versions 5.0 and 5.1:

Under DOS, the direction flag will normally be cleared if your

program has not changed it.

This information is not included in the C 5.1 or QuickC 2.0 or 2.01

manuals.

Additional reference words: 5.10 6.00 6.00a 6.00ax 7.00