< prev index next >

src/java.base/share/native/include/jvm.h

Print this page

        

*** 1153,1176 **** /* * The standard printing functions supported by the Java VM. (Should they * be renamed to JVM_* in the future? */ ! /* ! * BE CAREFUL! The following functions do not implement the ! * full feature set of standard C printf formats. ! */ ! int jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); ! int jio_snprintf(char *str, size_t count, const char *fmt, ...); ! int jio_fprintf(FILE *, const char *fmt, ...); ! int jio_vfprintf(FILE *, const char *fmt, va_list args); JNIEXPORT void * JNICALL JVM_RawMonitorCreate(void); --- 1153,1181 ---- /* * The standard printing functions supported by the Java VM. (Should they * be renamed to JVM_* in the future? */ ! /* jio_snprintf() and jio_vsnprintf() behave like snprintf(3) and vsnprintf(3), ! * respectively, with the following differences: ! * - The string written to str is always zero-terminated, also in case of ! * truncation (count is too small to hold the result string), unless count ! * is 0. In case of truncation count-1 characters are written and '\0' ! * appendend. ! * - If count is too small to hold the whole string, -1 is returned across ! * all platforms. */ ! ! JNIEXPORT int jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); ! JNIEXPORT int jio_snprintf(char *str, size_t count, const char *fmt, ...); ! JNIEXPORT int jio_fprintf(FILE *, const char *fmt, ...); ! JNIEXPORT int jio_vfprintf(FILE *, const char *fmt, va_list args); JNIEXPORT void * JNICALL JVM_RawMonitorCreate(void);
< prev index next >