1153 /* |
1153 /* |
1154 * The standard printing functions supported by the Java VM. (Should they |
1154 * The standard printing functions supported by the Java VM. (Should they |
1155 * be renamed to JVM_* in the future? |
1155 * be renamed to JVM_* in the future? |
1156 */ |
1156 */ |
1157 |
1157 |
1158 /* |
1158 /* jio_snprintf() and jio_vsnprintf() behave like snprintf(3) and vsnprintf(3), |
1159 * BE CAREFUL! The following functions do not implement the |
1159 * respectively, with the following differences: |
1160 * full feature set of standard C printf formats. |
1160 * - The string written to str is always zero-terminated, also in case of |
1161 */ |
1161 * truncation (count is too small to hold the result string), unless count |
1162 int |
1162 * is 0. In case of truncation count-1 characters are written and '\0' |
|
1163 * appendend. |
|
1164 * - If count is too small to hold the whole string, -1 is returned across |
|
1165 * all platforms. */ |
|
1166 |
|
1167 JNIEXPORT int |
1163 jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); |
1168 jio_vsnprintf(char *str, size_t count, const char *fmt, va_list args); |
1164 |
1169 |
1165 int |
1170 JNIEXPORT int |
1166 jio_snprintf(char *str, size_t count, const char *fmt, ...); |
1171 jio_snprintf(char *str, size_t count, const char *fmt, ...); |
1167 |
1172 |
1168 int |
1173 JNIEXPORT int |
1169 jio_fprintf(FILE *, const char *fmt, ...); |
1174 jio_fprintf(FILE *, const char *fmt, ...); |
1170 |
1175 |
1171 int |
1176 JNIEXPORT int |
1172 jio_vfprintf(FILE *, const char *fmt, va_list args); |
1177 jio_vfprintf(FILE *, const char *fmt, va_list args); |
1173 |
1178 |
1174 |
1179 |
1175 JNIEXPORT void * JNICALL |
1180 JNIEXPORT void * JNICALL |
1176 JVM_RawMonitorCreate(void); |
1181 JVM_RawMonitorCreate(void); |