# Synopsis

size_t saff_SJisToSTEP(char * instring, FILE *outfile)

# Purpose

Write string to the output file assuming that the instring is SHIFT JIS

# Description

Given a input string which may contain Kanji Characters encoded according to the Shift-JIS standard, convert the characters to STEP Part 21 format encoding the Kanji characters to a \X2 (Unicode/ISO 10646) format. See section 7.3.3.2 of the Part 21 standard

Thsi function must be registered with the saff subsystem prior to calling the saff_FormatFile function. saff_FormatFile is normally called by using the mda_FormatFile macro on a model which is a STEP model. See saff_RegisterEncoder() for registering the function. A default encoder function (saff_EncodeString) is registered when saff_Initialize() is called.

This function uses the unl subsystem. unl_Initialize() must be called prior to invoking this function (or calling the formatter).

# Input

## instring

the input string to print out

## outfile

File descriptor to write the string to

# Return

The number of characters which were written out.