contents   index   previous   next



THE CHARACTER ACCESS ROUTINES

 

In order to access invidivual characters in secharptrs, the following macros must be used. If you access the characters using the standard C notation, such as + for indexing and [] for accessing, your code will fail on MBCS builds. The following macros are provided instead:

 


SECHARPTR_INC(string)

SECHARPTR_GETC(string)

SECHARPTR_PUTC(string,char)

SECHARPTR_OFFSET(string,offset)

SECHARPTR_NEXT(string)

SECHARPTR_DIFF(string1,string2)