Object

scala.scalanative.libc

stdio

Related Doc: package libc

Permalink

object stdio

Annotations
@extern()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. stdio
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type FILE = CStruct0

    Permalink
  2. type fpos_t = CStruct0

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def BUFSIZ: CUnsignedInt

    Permalink
    Annotations
    @name( "scalanative_bufsiz" )
  5. def EOF: CInt

    Permalink
    Annotations
    @name( "scalanative_eof" )
  6. def FILENAME_MAX: CUnsignedInt

    Permalink
    Annotations
    @name( "scalanative_filename_max" )
  7. def FOPEN_MAX: CUnsignedInt

    Permalink
    Annotations
    @name( "scalanative_fopen_max" )
  8. def L_tmpnam: CUnsignedInt

    Permalink
    Annotations
    @name( "scalanative_l_tmpnam" )
  9. def SEEK_CUR: CInt

    Permalink
    Annotations
    @name( "scalanative_seek_cur" )
  10. def SEEK_END: CInt

    Permalink
    Annotations
    @name( "scalanative_seek_end" )
  11. def SEEK_SET: CInt

    Permalink
    Annotations
    @name( "scalanative_seek_set" )
  12. def TMP_MAX: CUnsignedInt

    Permalink
    Annotations
    @name( "scalanative_tmp_max" )
  13. def _IOFBF: CInt

    Permalink
    Annotations
    @name( "scalanative_iofbf" )
  14. def _IOLBF: CInt

    Permalink
    Annotations
    @name( "scalanative_iolbf" )
  15. def _IONBF: CInt

    Permalink
    Annotations
    @name( "scalanative_ionbf" )
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def clearerr(stream: Ptr[FILE]): Unit

    Permalink

    Resets the error flags and the EOF indicator for the given file stream.

    Resets the error flags and the EOF indicator for the given file stream.

    stream

    the file to reset the error flags for

    See also

    https://en.cppreference.com/w/c/io/clearerr

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def fclose(stream: Ptr[FILE]): CInt

    Permalink

    Closes the given file stream.

    Closes the given file stream. Any unwritten buffered data are flushed to the OS. Any unread buffered data are discarded.

    Whether or not the operation succeeds, the stream is no longer associated with a file, and the buffer allocated by setbuf or setvbuf, if any, is also disassociated and deallocated if automatic allocation was used.

    The behavior is undefined if the value of the pointer stream is used after fclose returns.

    stream

    the file stream to close

    returns

    0 on success, EOF otherwise

  22. def feof(stream: Ptr[FILE]): CInt

    Permalink

    Checks if the end of the given file stream has been reached.

    Checks if the end of the given file stream has been reached.

    stream

    the file stream to check

    returns

    nonzero value if the end of the stream has been reached, otherwise ​0​

    See also

    https://en.cppreference.com/w/c/io/feof

  23. def ferror(stream: Ptr[FILE]): CInt

    Permalink

    Checks the given stream for errors.

    Checks the given stream for errors.

    stream

    the file stream to check

    returns

    Nonzero value if the file stream has errors occurred, ​0​ otherwise

  24. def fflush(stream: Ptr[FILE]): CInt

    Permalink

    For output streams (and for update streams on which the last operation was output), writes any unwritten data from the stream's buffer to the associated output device.

    For output streams (and for update streams on which the last operation was output), writes any unwritten data from the stream's buffer to the associated output device.

    For input streams (and for update streams on which the last operation was input), the behavior is undefined.

    If stream is a null pointer, all open output streams are flushed, including the ones manipulated within library packages or otherwise not directly accessible to the program.

    stream

    the file stream to write out

    returns

    0 on success. Otherwise EOF is returned and the error indicator of the file stream is set.

  25. def fgetc(stream: Ptr[FILE]): CInt

    Permalink

    Reads the next character from the given input stream.

    Reads the next character from the given input stream.

    stream

    stream to read the character from

    returns

    Return value On success, returns the obtained character as an unsigned char converted to an int. On failure, returns EOF. If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stream. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stream.

    See also

    https://en.cppreference.com/w/c/io/fgetc

  26. def fgetpos(stream: Ptr[FILE], pos: Ptr[fpos_t]): CInt

    Permalink

    Retrieves the current position in the stream.

    Retrieves the current position in the stream.

    stream

    Pointer to a FILE object that identifies the stream.

    returns

    0 on success. non-zero value on failure and errno is set.

    See also

    https://www.cplusplus.com/reference/cstdio/fgetpos/

  27. def fgets(str: CString, count: CInt, stream: Ptr[FILE]): CString

    Permalink

    Reads at most count - 1 characters from the given file stream and stores them in the character array pointed to by str.

    Reads at most count - 1 characters from the given file stream and stores them in the character array pointed to by str. Parsing stops if a newline character is found, in which case str will contain that newline character, or if end-of-file occurs. If bytes are read and no errors occur, writes a null character at the position immediately after the last character written to str.

    str

    pointer to an element of a char array

    count

    maximum number of characters to write (typically the length of str)

    stream

    file stream to read the data from

    returns

    str on success, null pointer on failure. If the end-of-file condition is encountered, sets the eof indicator on stream (see feof()). This is only a failure if it causes no bytes to be read, in which case a null pointer is returned and the contents of the array pointed to by str are not altered (i.e. the first byte is not overwritten with a null character). If the failure has been caused by some other error, sets the error indicator (see ferror()) on stream. The contents of the array pointed to by str are indeterminate (it may not even be null-terminated).

  28. def fopen(filename: CString, mode: CString): Ptr[FILE]

    Permalink

    Opens a file indicated by filename and returns a file stream associated with that file.

    Opens a file indicated by filename and returns a file stream associated with that file. mode is used to determine the file access mode.

    returns

    If successful, returns a pointer to the object that controls the opened file stream, with both eof and error bits cleared. The stream is fully buffered unless filename refers to an interactive device.

  29. def fputc(ch: CInt, stream: Ptr[FILE]): CInt

    Permalink

    Writes a character ch to the given output stream stream.

    Writes a character ch to the given output stream stream. putc() may be implemented as a macro and evaluate stream more than once, so the corresponding argument should never be an expression with side effects.

    Internally, the character is converted to unsigned char just before being written.

    ch

    character to be written

    stream

    output stream

    returns

    On success, returns the written character. On failure, returns EOF and sets the error indicator (see ferror()) on stream.

    See also

    https://en.cppreference.com/w/c/io/fputc

  30. def fputs(str: CString, stream: Ptr[FILE]): CInt

    Permalink

    Writes every character from the null-terminated string str to the output stream stream, as if by repeatedly executing fputc.

    Writes every character from the null-terminated string str to the output stream stream, as if by repeatedly executing fputc.

    The terminating null character from str is not written.

    str

    null-terminated character string to be written

    stream

    output stream

    returns

    non-negative value on success. Otherwise, returns EOF and sets the error indicator (see ferror()) on stream.

    See also

    https://en.cppreference.com/w/c/io/fputs

  31. def fread(buffer: Ptr[Byte], size: CSize, count: CSize, stream: Ptr[FILE]): CSize

    Permalink

    Reads up to count objects into the array buffer from the given input stream stream as if by calling fgetc size times for each object, and storing the results, in the order obtained, into the successive positions of buffer, which is reinterpreted as an array of unsigned char.

    Reads up to count objects into the array buffer from the given input stream stream as if by calling fgetc size times for each object, and storing the results, in the order obtained, into the successive positions of buffer, which is reinterpreted as an array of unsigned char. The file position indicator for the stream is advanced by the number of characters read.

    If an error occurs, the resulting value of the file position indicator for the stream is indeterminate. If a partial element is read, its value is indeterminate.

    buffer

    pointer to the array where the read objects are stored

    size

    size of each object in bytes

    count

    the number of the objects to be read

    stream

    the stream to read

    returns

    Number of objects read successfully, which may be less than count if an error or end-of-file condition occurs. If size or count is zero, fread returns zero and performs no other action. fread does not distinguish between end-of-file and error, and callers must use feof and ferror to determine which occurred.

    See also

    https://en.cppreference.com/w/c/io/fread

  32. def fseek(stream: Ptr[FILE], offset: CLong, origin: CInt): CInt

    Permalink

    Sets the position indicator associated with the stream to a new position.

    Sets the position indicator associated with the stream to a new position.

    stream

    Pointer to a FILE object that identifies the stream.

    offset

    \- Binary files: Number of bytes to offset from origin. \- Text files: Either zero, or a value returned by ftell.

    origin

    Position used as reference for the offset. It is specified by one of the following constants defined in <cstdio> exclusively to be used as arguments for this function: | Constant | Reference position | |:---------|:-------------------------------------| | SEEK_SET | Beginning of file | | SEEK_CUR | Current position of the file pointer | | SEEK_END | End of file(1) | (1). Library implementations are allowed to not meaningfully support SEEK_END (therefore, code using it has no real standard portability).

    returns

    0 on success, non-zero value on failure.

    See also

    https://www.cplusplus.com/reference/cstdio/fseek/

  33. def fsetpos(stream: Ptr[FILE], pos: Ptr[fpos_t]): CInt

    Permalink

    Restores the current position in the stream to pos.

    Restores the current position in the stream to pos.

    stream

    Pointer to a FILE object that identifies the stream.

    returns

    0 on success. Non-zero value on failure.

    See also

    https://www.cplusplus.com/reference/cstdio/fsetpos/

  34. def ftell(stream: Ptr[FILE]): CLong

    Permalink

    Returns the current value of the position indicator of the stream.

    Returns the current value of the position indicator of the stream.

    stream

    Pointer to a FILE object that identifies the stream.

    returns

    the current value of the position indicator is returned on success. -1L on Failure and errno is set to system-specific positive value.

  35. def fwide(stream: Ptr[FILE], mode: CInt): CInt

    Permalink

    If mode > 0, attempts to make stream wide-oriented.

    If mode > 0, attempts to make stream wide-oriented. If mode < 0, attempts to make stream byte-oriented. If mode==0, only queries the current orientation of the stream.

    If the orientation of the stream has already been decided (by executing output or by an earlier call to fwide), this function does nothing.

    stream

    pointer to the C I/O stream to modify or query

    mode

    integer value greater than zero to set the stream wide, less than zero to set the stream narrow, or zero to query only

    returns

    An integer greater than zero if the stream is wide-oriented after this call, less than zero if the stream is byte-oriented after this call, and zero if the stream has no orientation.

    See also

    https://en.cppreference.com/w/c/io/fwide

  36. def fwrite(buffer: Ptr[Byte], size: CSize, count: CSize, stream: Ptr[FILE]): CSize

    Permalink

    Writes count of objects from the given array buffer to the output stream stream.

    Writes count of objects from the given array buffer to the output stream stream. The objects are written as if by reinterpreting each object as an array of unsigned char and calling fputc size times for each object to write those unsigned chars into stream, in order. The file position indicator for the stream is advanced by the number of characters written.

    If an error occurs, the resulting value of the file position indicator for the stream is indeterminate.

    buffer

    pointer to the first object in the array to be written

    size

    size of each object

    count

    the number of the objects to be written

    stream

    pointer to the output stream

    returns

    The number of objects written successfully, which may be less than count if an error occurs.If size or count is zero, fwrite returns zero and performs no other action.

    See also

    https://en.cppreference.com/w/c/io/fwrite

  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  38. def getc(stream: Ptr[FILE]): CInt

    Permalink

    Same as fgetc, except that if getc is implemented as a macro, it may evaluate stream more than once, so the corresponding argument should never be an expression with side effects.

    Same as fgetc, except that if getc is implemented as a macro, it may evaluate stream more than once, so the corresponding argument should never be an expression with side effects.

    stream

    stream to read the character from

    returns

    Return value On success, returns the obtained character as an unsigned char converted to an int. On failure, returns EOF. If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stream. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stream.

    See also

    https://en.cppreference.com/w/c/io/fgetc

  39. def getchar(): CInt

    Permalink

    Reads the next character from stdin.

    Reads the next character from stdin.

    returns

    The obtained character on success or EOF on failure. If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stdin.

  40. def gets(str: CString): CString

    Permalink

    Reads stdin into given character string until a newline character is found or end-of-file occurs.

    Reads stdin into given character string until a newline character is found or end-of-file occurs.

    str

    character string to be written

    returns

    str on success, a null pointer on failure. If the failure has been caused by end of file condition, additionally sets the eof indicator (see std::feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see std::ferror()) on stdin.

    See also

    https://en.cppreference.com/w/cpp/io/c/gets

  41. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  42. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  46. def perror(str: CString): Unit

    Permalink

    Prints a textual description of the error code currently stored in the system variable errno to stderr.

    Prints a textual description of the error code currently stored in the system variable errno to stderr.

    str

    pointer to a null-terminated string with explanatory message.

    See also

    https://en.cppreference.com/w/c/io/perror

  47. def putc(ch: CInt, stream: Ptr[FILE]): CInt

    Permalink

    Writes a character ch to the given output stream stream.

    Writes a character ch to the given output stream stream. putc() may be implemented as a macro and evaluate stream more than once, so the corresponding argument should never be an expression with side effects.

    Internally, the character is converted to unsigned char just before being written.

    ch

    character to be written

    stream

    output stream

    returns

    On success, returns the written character. On failure, returns EOF and sets the error indicator (see ferror()) on stream.

    See also

    https://en.cppreference.com/w/c/io/fputc

  48. def putchar(ch: CInt): CInt

    Permalink

    Writes a character ch to stdout.

    Writes a character ch to stdout. Internally, the character is converted to unsigned char just before being written.

    ch

    character to be written

    returns

    the written character on success. Otherwise return EOF and sets the error indicator on stdout.

    See also

    https://en.cppreference.com/w/c/io/ferror for error indicators.

    https://en.cppreference.com/w/c/io/putchar

  49. def puts(str: CString): CInt

    Permalink

    Writes every character from the null-terminated string str and one additional newline character '\n' to the output stream stdout, as if by repeatedly executing fputc.

    Writes every character from the null-terminated string str and one additional newline character '\n' to the output stream stdout, as if by repeatedly executing fputc.

    The terminating null character from str is NOT written.

    str

    character string to be written

    returns

    a non-negative value on success. Otherwise, return EOF and sets the error indicator on stream.

    See also

    https://en.cppreference.com/w/c/io/ferror for error indicators.

    https://en.cppreference.com/w/c/io/puts

  50. def remove(fname: CString): CInt

    Permalink

    Deletes the file identified by character string pointed to by fname.

    Deletes the file identified by character string pointed to by fname.

    fname

    pointer to a null-terminated string containing the path identifying the file to delete

    returns

    ​0​ upon success or non-zero value on error.

    See also

    https://en.cppreference.com/w/c/io/remove

  51. def rename(oldFileName: CString, newFileName: CString): CInt

    Permalink

    Changes the filename of a file.

    Changes the filename of a file. The file is identified by character string pointed to by old_filename. The new filename is identified by character string pointed to by new_filename.

    If new_filename exists, the behavior is implementation-defined.

    returns

    ​0​ upon success or non-zero value on error.

    See also

    https://en.cppreference.com/w/c/io/rename

  52. def rewind(stream: Ptr[FILE]): Unit

    Permalink

    Sets the position indicator associated with stream to the beginning of the file.

    Sets the position indicator associated with stream to the beginning of the file.

    stream

    pointer to a FILE object that identifies the stream.

    See also

    https://www.cplusplus.com/reference/cstdio/rewind/

  53. def setbuf(stream: Ptr[FILE], buffer: Ptr[CChar]): Unit

    Permalink

    Sets the internal buffer to use for stream operations.

    Sets the internal buffer to use for stream operations. It should be at least BUFSIZ characters long.

    stream

    the file stream to set the buffer to

    buffer

    pointer to a buffer for the stream to use. If a null pointer is supplied, the buffering is turned off

  54. def setvbuf(stream: Ptr[FILE], buffer: Ptr[CChar], mode: CInt, size: CSize): CInt

    Permalink

    Changes the buffering mode of the given file stream stream as indicated by the argument mode.

    Changes the buffering mode of the given file stream stream as indicated by the argument mode. In addition,

    stream

    the file stream to set the buffer to

    buffer

    pointer to a buffer for the stream to use or null pointer to change size and mode only

    mode

    buffering mode to use. It can be one of the following values: | mode | buffer | |:-------|:---------------| | _IOFBF | full buffering | | _IOLBF | line buffering | | _IONBF | no buffering |

    returns

    ​0​ on success or nonzero on failure.

  55. def stderr: Ptr[FILE]

    Permalink
    Annotations
    @name( "scalanative_stderr" )
  56. def stdin: Ptr[FILE]

    Permalink
    Annotations
    @name( "scalanative_stdin" )
  57. def stdout: Ptr[FILE]

    Permalink
    Annotations
    @name( "scalanative_stdout" )
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  59. def tmpfile(): Ptr[FILE]

    Permalink

    Creates and opens a temporary file with a unique auto-generated filename.

    Creates and opens a temporary file with a unique auto-generated filename.

    returns

    The associated file stream or a null pointer if an error has occurred

    See also

    https://en.cppreference.com/w/cpp/io/c/tmpfile

  60. def tmpnam(fileName: CString): CString

    Permalink

    Creates a unique filename that does not name a currently existing file, and stores it in the character string pointed to by filename.

    Creates a unique filename that does not name a currently existing file, and stores it in the character string pointed to by filename. The function is capable of generating up to TMP_MAX of unique filenames, but some or all of them may already be in use, and thus not suitable return values.

    returns

    filename if filename was not a null pointer. Otherwise a pointer to an internal static buffer is returned. If no suitable filename can be generated, a null pointer is returned.

    See also

    https://en.cppreference.com/w/cpp/io/c/tmpnam

  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. def ungetc(ch: CInt, stream: Ptr[FILE]): CInt

    Permalink

    If ch does not equal EOF, pushes the character ch (reinterpreted as unsigned char) into the input buffer associated with the stream stream in such a manner that subsequent read operation from stream will retrieve that character.

    If ch does not equal EOF, pushes the character ch (reinterpreted as unsigned char) into the input buffer associated with the stream stream in such a manner that subsequent read operation from stream will retrieve that character. The external device associated with the stream is not modified.

    Stream repositioning operations fseek, fsetpos, and rewind discard the effects of ungetc.

    If ungetc is called more than once without an intervening read or repositioning, it may fail (in other words, a pushback buffer of size 1 is guaranteed, but any larger buffer is implementation-defined). If multiple successful ungetc were performed, read operations retrieve the pushed-back characters in reverse order of ungetc.

    If ch equals EOF, the operation fails and the stream is not affected.

    A successful call to ungetc clears the end of file status flag feof.

    A successful call to ungetc on a binary stream decrements the stream position indicator by one (the behavior is indeterminate if the stream position indicator was zero).

    A successful call to ungetc on a text stream modifies the stream position indicator in unspecified manner but guarantees that after all pushed-back characters are retrieved with a read operation, the stream position indicator is equal to its value before ungetc.

    ch

    character to be pushed into the input stream buffer

    stream

    file stream to put the character back to

    returns

    ch on success. Otherwise returns EOF and the given stream remains unchanged.

  63. def vfprintf(stream: Ptr[FILE], format: CString, valist: CVarArgList): CInt

    Permalink

    Writes the results to a file stream stream.

    Writes the results to a file stream stream.

    stream

    output file stream to write to

    format

    pointer to a null-terminated character string specifying how to interpret the data

    returns

    The number of characters written if successful or negative value if an error occurred.

    See also

    https://en.cppreference.com/w/c/io/vfprintf

  64. def vfscanf(stream: Ptr[FILE], format: CString, valist: CVarArgList): CInt

    Permalink

    Read formatted data from stream into variable argument list Reads data from the stream and stores them according to parameter format into the locations pointed by the elements in the variable argument list identified by arg.

    Read formatted data from stream into variable argument list Reads data from the stream and stores them according to parameter format into the locations pointed by the elements in the variable argument list identified by arg.

    stream

    Pointer to a FILE object that identifies an input stream.

    format

    C string that contains a format string that follows the same specifications as format in scanf (see scanf for details).

    valist

    A value identifying a variable arguments list initialized with va_start. va_list is a special type defined in <cstdarg>.

    returns

    the number of items of the argument listsuccessfully filled on success. If a reading error happens or the end-of-file is reached while reading, the proper indicator is set (feof or ferror). And, if either happens before any data could be successfully read, EOF is returned.

    See also

    https://www.cplusplus.com/reference/cstdio/vfscanf/

  65. def vprintf(format: CString, valist: CVarArgList): CInt

    Permalink

    Writes the results to stdout.

    Writes the results to stdout.

    format

    pointer to a null-terminated character string specifying how to interpret the data

    valist

    variable argument list containing the data to print.

    returns

    The number of characters written if successful or negative value if an error occurred.

    See also

    https://en.cppreference.com/w/c/io/vfprintf

  66. def vscanf(format: CString, valist: CVarArgList): CInt

    Permalink

    Read formatted data into variable argument list Reads data from the standard input (stdin) and stores them according to parameter format into the locations pointed by the elements in the variable argument list identified by arg.

    Read formatted data into variable argument list Reads data from the standard input (stdin) and stores them according to parameter format into the locations pointed by the elements in the variable argument list identified by arg.

    format

    C string that contains a format string that follows the same specifications as format in scanf (see scanf for details).

    valist

    A value identifying a variable arguments list initialized with va_start. va_list is a special type defined in <cstdarg>.

    returns

    the number of items of the argument listsuccessfully filled on success. If a reading error happens or the end-of-file is reached while reading, the proper indicator is set (feof or ferror). And, if either happens before any data could be successfully read, EOF is returned.

  67. def vsnprintf(buffer: CString, bufsz: CInt, format: CString, valist: CVarArgList): CInt

    Permalink

    The number of characters written if successful or negative value if an error occurred.

    The number of characters written if successful or negative value if an error occurred. If the resulting string gets truncated due to buf_size limit, function returns the total number of characters (not including the terminating null-byte) which would have been written, if the limit was not imposed. *

    buffer

    pointer to a character string to write to

    bufsz

    up to bufsz - 1 characters may be written, plus the null terminator

    format

    pointer to a null-terminated character string specifying how to interpret the data

    returns

    The number of characters written if successful or negative value if an error occurred.

    See also

    https://en.cppreference.com/w/c/io/vfprintf

  68. def vsprintf(buffer: CString, format: CString, valist: CVarArgList): CInt

    Permalink

    Writes the results to a character string buffer.

    Writes the results to a character string buffer.

    buffer

    pointer to a character string to write to

    format

    pointer to a null-terminated character string specifying how to interpret the data

    returns

    The number of characters written if successful or negative value if an error occurred.

    See also

    https://en.cppreference.com/w/c/io/vfprintf

  69. def vsscanf(buffer: CString, format: CString, valist: CVarArgList): CInt

    Permalink

    Reads the data from stdin

    Reads the data from stdin

    buffer

    pointer to a null-terminated character string to read from

    format

    pointer to a null-terminated character string specifying how to read the input

    returns

    Number of receiving arguments successfully assigned, or EOF if read failure occurs before the first receiving argument was assigned

  70. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped