# Standard Fortran Routines That Handle MBCS Characters (Windows*)

This section describes Fortran routines that work as usual even if MBCS characters are included in strings.

Because a space can never be a lead or tail byte, many routines that deal with spaces work as expected on strings containing MBCS characters. Such functions include:

- ADJUSTL (string)

- ADJUSTR (string)

- TRIM (string)

Some routines work with the computer collating sequence to return a character in a certain position in the sequence or the position in the sequence of a certain character. These functions are not dependent on a particular collating sequence. (You should note, however, that elsewhere in this manual the ASCII collating sequence is mentioned in reference to these functions.) Such functions use position and c values between 0 and 255 (inclusive) and include:

- ACHAR (position)

- CHAR (position[,kind ])

- IACHAR (c)

- ICHAR (c)

Because Fortran uses character lengths instead of NULLs to indicate the length of a string, some functions work solely from the length of the string, and not with the contents of the string. This function works as usual on strings containing MBCS characters, and include:

REPEAT (string, ncopies)

Parent topic: Run-Time Library Routines