Microsoft SDK for Java

javaString2CString

Retrieves the characters of the Java String object into a C string buffer.

Syntax

char* __cdecl javaString2CString(Hjava_lang_String *s, char *buf, int buflen);

Return Value

Returns the address of the C string.

Parameters

*s The Java String object.
*buf The C string buffer.
buflen The length of the C string buffer.

Remarks

Use this function in place of the JDK makeCString function, which is unsupported by the Microsoft RNI. No allocation occurs with this function.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.