Jump to content

FSH PREVCHAR: Difference between revisions

From EDM2
Created page with "This function provides the mechanism for decrementing a character point, taking into account DBCS considerations. ==Syntax== FSH_PREVCHAR(pBeg, ppStr) ==Parameters== ;pBe..."
 
No edit summary
Line 24: Line 24:
;Note:  OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.   
;Note:  OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.   


[[Category:FSH_PREVCHAR]]
[[Category:IFS Interfaces]]
{{DISPLAYTITLE:FSH_PREVCHAR}}
{{DISPLAYTITLE:FSH_PREVCHAR}}

Revision as of 04:44, 20 February 2020

This function provides the mechanism for decrementing a character point, taking into account DBCS considerations.

Syntax

FSH_PREVCHAR(pBeg, ppStr)

Parameters

pBeg
is a pointer to the beginning of a string.
ppStr
is a pointer to the character pointer of a string.
The value is decremented appropriately upon return. If it is at the beginning of a string, the pointer is not decremented. If it points to the second byte of a DBCS character, it will be decremented to point to the first byte of the character.

Returns

There are no error returns.

Calling Sequence

void far pascal FSH_PREVCHAR(pBeg, ppStr)

char far * pBeg;
char far * far * ppStr;

Remarks

The FSD is responsible for verifying the string pointer and checking for segment boundaries.

Note
OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.